Understanding the Weighted Average Cost (WAC) Method for Inventory Valuation