When the weighted average method of perpetual inventory trackingis used at what point is the new average cost calculated?