is calculated as cost of goods sold divided by average inventory during the time period.