The costs of goods are the direct expenses from the production of goods during a chosen period. These costs include the labor, materials, and parts, but do not include distribution or sales costs. Calculate the COGS value as the sum of beginning inventory costs and purchases for the period minus ending inventory costs.