Cost Of Sales Calculation