> For the complete documentation index, see [llms.txt](https://chris-invader.gitbook.io/alpha-canary/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chris-invader.gitbook.io/alpha-canary/commands/calculate-profit.md).

# calculate-profit

Calculates how much you need to sell an asset to be in profit

## *`/`*`calculate-profit`

### *`[`**`cost-each`**`] [`**`gas-spent`**`] [`**`total-royalties]`**` ``[`**`quantity-of-assets]`***&#x20;

#### *`Parameters`*

1. ***`cost-each (required)`**`- Cost of each asset in ETH`*
2. ***`gas-spent (required)`**` ``- Gas spent in the txn of the asset(s) in ETH`*
3. ***`total-royalties (required)`**` ``- The total sum of royalties and/or fees`*
4. ***`quantity-of-assets (required)`**` ``- Quantity of assets bought`*

#### *`Example`*

*`/calculate-profit cost-each: 0.11 gas-spent: 0.01 total-royaylties 8.5 quantity-of-assets 3`*
