A two-mode sales-tax calculator that can add tax to a subtotal or extract tax from a tax-inclusive total.