Cost of Goods sold

How to calculate COGS?