Correcting the calculations.
Cost total is wrong.