Restaurant opening day inventory calculator

Calculate purchase list [name,packs,purchase units,surplus units] with your own figures.

Your numbers

Use the units shown. Results update as you change valid inputs.

Use purchase list [name,packs,purchase units,surplus units] to compare changes to your inputs. The method and limits below explain the scope.

Examples

Examples

Try the starting example

Ingredients [name,forecast servings,units per serving,usable stock units,pack units]; enter JSON
[["Rice",100,0.1,2,5],["Oil",100,0.02,1,2]]
Purchase list [name,packs,purchase units,surplus units] (JSON)
[["Rice",2,10,2],["Oil",1,2,1]]

Try another scenario

Ingredients [name,forecast servings,units per serving,usable stock units,pack units]; enter JSON
[["Rice",120,0.12,1,5],["Oil",120,0.025,0.5,2]]
Purchase list [name,packs,purchase units,surplus units] (JSON)
[["Rice",3,15,1.6],["Oil",2,4,1.5]]
Calculation method

Calculation method

Purchase list [name,packs,purchase units,surplus units] (JSON)

Need=max(0,forecast×per-serving−stock); packs=ceil(need/pack); surplus=stock+packs×pack−demand.

Symbols and units
a
Ingredients [name,forecast servings,units per serving,usable stock units,pack units]; enter JSON

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

  • Ingredient demand from forecast servings and pack rounding; no substitutions or shared supplier minimums. 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 pack units>0; other quantities>=0; units consistent within each ingredient.
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.

Share this page
Share this calculator

Leave unchecked to share the page without your entered values.