safety stock calculation electronics