Examples
Examples
Try the starting example
- JSON Equipment [ID,required units per new starter,available units]
- [["laptop",1,8],["monitor",2,12]]
- Same-date starter cohort (count)
- 10
- Days until starts
- 14
- Procurement lead time (days)
- 21
- Missing equipment
- [["laptop",2],["monitor",8]]
- Complete kits ready
- 6
- Lead-time shortfall (days)
- 7
Try another scenario
- JSON Equipment [ID,required units per new starter,available units]
- [["laptop",1,8],["monitor",2,12]]
- Same-date starter cohort (count)
- 6
- Days until starts
- 14
- Procurement lead time (days)
- 21
- Missing equipment
- [["laptop",0],["monitor",0]]
- Complete kits ready
- 6
- Lead-time shortfall (days)
- 7
Calculation method
Calculation method
Missing equipment
J([[r[0],max(0,r[1]*b-r[2])] for r in a])
Complete kits ready
min(b,min(math.floor(r[2]/r[1]) for r in a))
Lead-time shortfall (days)
max(0,d-c)
Symbols and units
- a
- JSON Equipment [ID,required units per new starter,available units]
- b
- Same-date starter cohort (count)
- c
- Days until starts
- d
- Procurement lead time (days)
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
- One same-date role kit; repeat per start-date cohort after reserving earlier stock. Positive per-person requirements. Lead-time shortfall is a planning signal from supplied values. Supported limits: All numeric inputs must be finite. Only the explicitly described mathematical scenario is supported.
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.