Mathematical Calculations and Inventory Control