Calculate Average Inventory Cost