difference, at each stage of production, between the cost of a product and the cost of all the materials purchased to make the product.