Inventory Cost Formula