Calculation of total cost with sales tax