Printing correct cost value