Inventory Average Cost Formula