(12C) Net Present Value, Net Future Value, Net Utility Stream
08-07-2016, 07:57 PM
Post: #1
 Eddie W. Shore Senior Member Posts: 664 Joined: Dec 2013
(12C) Net Present Value, Net Future Value, Net Utility Stream
Input:

Clear the registers/finance registers
Press [ g ] (GTO) 00 to get the pointer to line 00. (000 for the HP 12C Platinum editions. Remember, the Platinum editions have up to 400 steps and line numbers are in triple digits)
Store -1 in [ n ] (don’t worry, n is incremented in the main loop)
Store periodic interest rate in [ i ].
Store 0 in register 0 (0 [STO] [ 0 ]). Register 0 is use for calculating NPV

Enter each cash flow one at a time, and press [R/S].

Press [ g ] (GTO) 10 (or 010) to get the pointer to line 10.
Press [R/S] to get NPV (net present value)
Press [R/S] to get NFV (net future value)
Press [R/S] to get NUS (net utility stream)

Program:
Code:
 STEP    CODE    KEY 01    16    CHS  // main loop: input data 02    15    FV 03    45, 11    RCL n 04    1    1 05    40    + 06    11    n 07    13    PV 08    44, 40, 0    STO+ 0 09    43, 33, 0    GTO 00  // finish main loop 10    45, 0    RCL 0 // calculation part 11    31    R/S  // net present value 12    1    1 13    16    CHS 14    13    PV 15    0    0 16    14    PMT 17    15    FV 18    45, 0    RCL 0 19    20    * 20    31    R/S  // net future value 21    45, 0    RCL 0 22    1    1 23    16    CHS 24    14    PMT 25    0    0 26    15    FV 27    13    PV 28    10    ÷ 29    31    R/S  // net utility stream

Example:

Rate: 15%
Cash Flow # Flow
0 -10,000.00
1 2500.00
2 3500.00
3 5000.00
4 5000.00

Input:
[ f ] CLEAR FIN, [ f ] CLEAR PRGM
-1 [ n ] // do this on each new problem
0 [STO] [ 0 ] // do this on each new problem

15 [ i ]
10000 [CHS] [R/S]
2500 [R/S]
3500 [R/S]
5000 [R/S]
5000 [R/S]

Results:

[GTO] 10 [R/S]: NPV = 966.76
[R/S]: NFV = 1690.88
[R/S]: NUS = 338.62

Input slowly and carefully.

This blog entry is property of Edward Shore, 2016.
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)