Divide the % of tax u want to leave by 100 then multiply that by the total. that will give u the $ of tax. if u add that on to the sub total that will give u the final total.
Example: 18/100= .18 .18x$23.50= $4.23 (this is the tax in $ $23.50+$4.23= $27.73