When a business sells its product/service, the cost of the product is calculated by aggregating the cost of inventory and other expenses incurred to make it ready for sale. Thus, the cost of the product is recorded as the cost of goods sold (COGS) in the income statement or profit and loss statement.