Calculating total loan amount with upgrades and sales tax