Cost of Goods Sold and How to Calculate It