Calculating the Ending Inventory Value