Calculate Average Inventory