Price a portion
price-portionCalculate a selling price from a portion cost at a target margin, then report margin, markup, and food-cost percentage without manual conversion.
Instructions
Turn a portion cost into a selling price at a target margin, and report margin, markup and food-cost percentage. Margin and markup are different numbers — call this rather than converting between them yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| price | No | ||
| targetMarginPct | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| price | Yes | ||
| profit | Yes | ||
| marginPct | Yes | ||
| markupPct | Yes | ||
| foodCostPct | Yes |