A Program for Converting Interest and Discount Rates on HP12C



#2

The following program will convert any interest or discount rates to any other interest or discount rate, including continuous rates.

001 STO 0
002 R-DOWN
003 STO 1
004 g x=0
005 g GTO 015
006 EEX
007 2
008 x (times)
009 / (divide)
010 1
011 +
012 RCL 1
013 Y^x
014 g GTO 020
015 R-DOWN
016 EEX
017 2
018 /
019 g e^x
020 RCL 0
021 g x=0
022 g GTO 033
023 1/x
024 Y^x
025 1
026 -
027 RCL 0
028 EEX
029 2
030 x
031 x
032 g GTO 000
033 R-DOWN
034 g LN
035 EEX
036 2
037 x
038 g GTO 000

To use the program simply enter the interest rate, it's compounding periods, and the compounding periods you want to convert to and press R/S. If you are converting from or to a discount rate, enter the compounding period as a negative number. If you are coverting from or to a continous rate, enter 0 as the compounding periods.

Example 1: 10% interest rate, compounded monthly to the equivalent rate compounded semi-anually.

10 ENTER
12 ENTER
2 R/S
Ans: 10.21066220

Example 2: 8% discount rate, compounded monthly to the equivalent interest rate compounded quarterly.

8 ENTER
12 CHS ENTER
4 R/S
Ans: 8.107864000

Example 3: 7% interest rate, compounded continuously, to the equivalent interest rate compounded monthly.

7 ENTER
0 ENTER
12 R/S
Ans: 7.020456000

Don Phillips
don.phillips@gmail.com


Possibly Related Threads…
Thread Author Replies Views Last Post
  Converting Great Circle Navigation from 41C to 42S Bill Triplett 11 3,388 11-13-2013, 07:24 AM
Last Post: Kimberly Thompson
  HP12c Present Value of $1.. Inaccurate??? Edward Dixon 12 3,552 11-12-2013, 11:32 AM
Last Post: Edward Dixon
  HP Prime: Converting number to Sci notation and back BruceTTT 1 1,503 11-12-2013, 02:11 AM
Last Post: Phil Wipf
  HP Prime: run a program in another program Davi Ribeiro de Oliveira 6 2,644 11-11-2013, 08:28 PM
Last Post: Davi Ribeiro de Oliveira
  HP12C Platinum PC software activation fails Russell Clinton 0 1,066 07-02-2013, 02:32 PM
Last Post: Russell Clinton
  [wp34s] Converting to/from IEEE 754 Binary64 (Double Precision) David Maier 1 1,112 06-15-2013, 09:21 PM
Last Post: Paul Dale
  OT - Converting 9 track 6250 bpi tapes Marcel Samek 0 888 05-31-2013, 08:26 PM
Last Post: Marcel Samek
  Article of interest Victor Quiros 0 906 03-09-2013, 03:56 PM
Last Post: Victor Quiros
  HP 12 C simple interest calcuation sam 6 1,956 01-16-2013, 10:22 AM
Last Post: fhub
  HP12C Limited Edition 30 anniversary keyboard Revan Ng 0 905 01-11-2013, 12:49 AM
Last Post: Revan Ng

Forum Jump: