How to calculate the total sales tax and local tax rate