Calculating total cost with upgrades and sales tax