Profit margin
smartfin_calculate_profit_marginThe profit and the profit margin percentage from revenue and total costs (margin = (revenue - costs) / revenue x 100). A negative margin is a valid result. Use for questions about profit as a share of sales, from two figures for the same period. Do not use for return on money invested (use smartfin_calculate_roi), for taxes, or to say whether a margin is good: the tool reports the figure only. The cost figure is whatever the user supplies, so it says nothing about gross versus net unless they define it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revenue | Yes | Revenue for the period in the currency chosen, above 0 | |
| currency | No | Currency symbol for the amounts in the summary only; amounts are never converted. The link opens the page in US dollars, and how_to says to pick the currency there. Default USD | |
| total_costs | Yes | Total costs for the same period in the currency chosen; it can be above revenue |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cite | Yes | How to credit this result | |
| data | Yes | ||
| next | Yes | Suggested follow-up calls | |
| links | Yes | ||
| how_to | Yes | Steps for the user to see or redo this on smartfin.fyi | |
| source | Yes | ||
| summary | Yes | Plain-language result the assistant can quote |