Understand how to calculate the cost of goods sold and its impact on profitability.