Examples
Examples
Try the starting example
- Menu rows [target price currency,unit cost currency,expected units]; enter JSON (USD)
- [[8.12,3,10],[12.95,5,8]]
- Allowed fractional currency endings
- 0.49,0.99
- Rounded menu prices (USD, JSON)
- [8.49,12.99]
- Contribution margin change (USD)
- $4.02
Try another scenario
- Menu rows [target price currency,unit cost currency,expected units]; enter JSON (USD)
- [[9.15,3.5,12],[14.2,6,6]]
- Allowed fractional currency endings
- 0.5,0.95
- Rounded menu prices (USD, JSON)
- [9.5,14.5]
- Contribution margin change (USD)
- $6.00
Calculation method
Calculation method
Rounded menu prices (USD, JSON)
Find smallest whole-unit-plus-allowed-ending value >=target, including next whole unit if needed.
Contribution margin change (USD)
Sum (rounded target−original target)×fixed expected units; costs cancel.
Symbols and units
- a
- Menu rows [target price currency,unit cost currency,expected units]; enter JSON (USD)
- b
- Allowed fractional currency endings
Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.
Assumptions & limits
Assumptions & limits
- Round each target price upward to the next allowed fractional currency ending; demand quantities held constant. Supported limits: All numeric inputs and computed intermediates must remain finite. Supported numeric input magnitude is zero or 1e-12 through 1e12 in absolute value; reject values outside this bounded range. All lists/JSON record tables are limited to 100 records unless a stricter bound is stated; reject malformed record arity and wrong member types. All numeric values must be finite. Lists contain at most 100 records; required lists must be nonempty. Rates, probabilities and fractions are entered as fractions, not percentages; fractions must be between 0 and 1. Use a single consistent user-selected currency for all amounts; no exchange-rate conversion.
Are these inputs private?
These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.