Cost of Goods Manufactured COGM Formula, Calculation