how to calculate weighted average cost price?
To use the weighted average model, one divides the cost of the goods that are available for sale by the number of those units still on the shelf. This calculation yields the weighted average cost per unit—a figure that can then be used to assign a cost to both ending inventory and the cost of goods sold.