# HP Forums

Full Version: (12C) Total Sales Tax With Rounded Amounts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This program allows to calculate the total of sales invoice with the sales tax rounded to 2 decimal places, regardless of how the FIX setting is set.

Instructions:
1. Enter the tax rate.
2. Press [ f ] (PRGM), [R/S]
3. Enter the item's cost, press [R/S]
4. For subsequent items, enter the cost, then [R/S]
5. When finished, press [RCL], 1 to recall total rounded sales tax. Press [RCL], 2 to recall the total invoice.

I have program set to pause to show the rounded sales tax when each cost is entered.

Program:
Code:
``` (Step ##: key code, key) 01:  44,0  STO 0 02:  42, 2  FIX 2 03:  35,  CLx 04:  44, 1 STO 1 05:  44, 2 STO 2 06:  31  R/S 07:  45, 0  RCL 0 08:  25   % 09:  1     1 10:  26   EE 11:  2     2 12:  20   * 13:  36   ENTER 14:  43, 24  FRAC 15:  48    .  (decimal point) 16:  5      5 17:  34   x<>y 18:  43, 34  x≤y 19:  43, 33, 23  GTO 23 20:  33   R↓ 21:  40   + 22:  43, 33, 25   GTO 25 23:  33  R↓ 24:  33  R↓ 25:  43, 25  ITNG 26:  1    1 27:  26  EEX 28:  2     2 29:  10   ÷ 30:  43, 31   PSE 31:  44, 40, 1   STO+ 1 32:  40   + 33:  44, 40, 2   STO+ 2 34:  31   R/S 35:  43, 33, 07  GTO 07```

Example:
Sales Tax Rate: 9.5%
Item Costs: \$14.35, \$18.99, \$39.99, \$23.64

Keystrokes:
9.5 [ f ] (PRGM) [R/S]
14.35 [R/S]
18.99 [R/S]
39.99 [R/S]
23.64 [R/S]

R1: Total rounded sales tax: 9.21
R2: Total invoice: 106.18