A common formula is safety stock = Z × the standard deviation of daily sales × √lead time, where Z comes from your service level (about 1.65 for 95%). More safety stock means fewer stockouts and more cash sitting on shelves.
Glossary
Safety stock
Extra stock you hold to cover the days sales run faster than average or a supplier delivers late.