calc_safety_stock
Calculates safety stock using the Z-score method driven by service level. Requires average demand, demand standard deviation, and lead time statistics.
Instructions
Calculates safety stock via the Z-score method (service-level driven). DEPENDS ON: demand/lead-time statistics which would normally come from get_goods_movement_history (currently blocked) — for now, pass these values directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| z | No | ||
| demandStdDev | Yes | ||
| serviceLevel | No | ||
| leadTimeStdDev | No | ||
| avgDemandPerPeriod | Yes | ||
| avgLeadTimePeriods | Yes |