Computing the Cost of Goods Sold