The cost of goods sold is calculated through the formula belowopening stock + purchases – closing stock.If we go by the formula above it isN50,000 + N 200,000 - N80,000 = N170,000.