Cleaning washroom peak demand calculator

Calculate interval [index,demand,unserved,end stock] and total unserved supply units with your own figures.

Your numbers

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

Use interval [index,demand,unserved,end stock] and total unserved supply units to compare changes to your inputs. The method and limits below explain the scope.

Examples

Examples

Try the starting example

Visitors by interval
20,40,50,30
Supply units per visitor
2
Dispenser capacity (supply units)
150
Refill every N intervals
2
Interval [index,demand,unserved,end stock] (JSON)
[[0,40,0,110],[1,80,0,30],[2,100,0,50],[3,60,10,0]]
Total unserved supply units
10

Try another scenario

Visitors by interval
30,50,60,40
Supply units per visitor
2.5
Dispenser capacity (supply units)
180
Refill every N intervals
3
Interval [index,demand,unserved,end stock] (JSON)
[[0,75,0,105],[1,125,20,0],[2,150,150,0],[3,100,0,80]]
Total unserved supply units
170
Calculation method

Calculation method

Interval [index,demand,unserved,end stock] (JSON)

Start full; refill to capacity at interval indices divisible by N, then consume min(stock,visitors×use).

Total unserved supply units

Sum interval shortages.

Symbols and units
a
Visitors by interval
b
Supply units per visitor
c
Dispenser capacity (supply units)
d
Refill every N intervals

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

  • Consumable demand from observed visitor counts with periodic refill, deterministic stockout scenario. 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.