Correction to calc. of cost_tax for selling.