what is cost of goods sold cogs and how to calculate it 2