To calculate safety stock, multiply the Z-score by the standard deviation of demand during the lead time, then add the average demand during the lead time.
Safety Stock = (Z-score × Standard Deviation of Demand During Lead Time) + Average Demand During Lead Time
The formula for safety stock is:
Safety Stock = (Maximum Daily Usage × Maximum Lead Time) – (Average Daily Usage × Average Lead Time)