what is the sales tax calculation based on?