The correct answer is D. Sales - Cost of goods sold.

Gross profit is a measure of a company's profitability. It is calculated by taking the company's sales revenue and subtracting the cost of goods sold. The cost of goods sold is the cost of the goods that a company sells. It includes the cost of the materials used to make the goods, the cost of labor to produce the goods, and the cost of overhead, such as rent and utilities.

Gross profit is an important measure of a company's financial health. It is a measure of how much money a company makes from its core business activities. A high gross profit margin indicates that a company is efficient at producing and selling its products. A low gross profit margin indicates that a company is not efficient at producing and selling its products, or that it is selling its products at a low price.

The other options are incorrect because they do not take into account the cost of goods sold. Option A, Opening stock + purchases - closing stock, is the cost of goods available for sale. Option B, Net profit - expenses, is a measure of a company's overall profitability. Option C, Sales - Closing stock + purchases, is the cost of goods sold plus the gross profit.