Solving a problem with sales tax