Margin Calculator
margin_calculatorCalculate cost, selling price, gross profit, margin percentage and markup percentage from two independent values including cost or price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Cost per item (USD; at most two decimal places) | |
| price | No | Selling price per item (USD; at most two decimal places) | |
| marginPercent | No | Gross margin as percent of selling price | |
| markupPercent | No | Markup as percent of cost |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||