Grocery produce display refill calculator

Calculate refill and shortage ledger and unserved sales with your own figures.

Your numbers

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

Use refill and shortage ledger and unserved sales to compare changes to your inputs. The method and limits below explain the scope.

Examples

Examples

Try the starting example

Interval sales (units)
5,8,10,6
Display capacity (units)
12
Reserve stock (units)
20
Refill and shortage ledger (JSON)
{"refills":[[1,5],[2,8],[3,7]],"shortages":[],"served":29,"display_remaining":3,"reserve_remaining":0}
Unserved sales (units)
0

Try another scenario

Interval sales (units)
6,12,8,7
Display capacity (units)
15
Reserve stock (units)
15
Refill and shortage ledger (JSON)
{"refills":[[1,6],[2,9]],"shortages":[[3,3]],"served":30,"display_remaining":0,"reserve_remaining":0}
Unserved sales (units)
3
Calculation method

Calculation method

Refill and shortage ledger (JSON)

Start full display; before each interval if demand>stock refill min(capacity−stock,reserve), then sell available stock and record lost demand.

Unserved sales (units)

Sum interval shortages.

Symbols and units
a
Interval sales (units)
b
Display capacity (units)
c
Reserve stock (units)

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

  • Zero-lead reserve refill when display cannot cover an interval; one refill per interval and capacity respected. 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.

Share this page
Share this calculator

Leave unchecked to share the page without your entered values.