Re: Future Value Problem: what about a program to compute it? Message #7 Posted by Vieira, Luiz C. (Brazil) on 25 Jan 2010, 11:01 p.m., in response to message #1 by Anthony Baldwin
Hi;
some years ago I was asked about how to compute the net future value in an HP12C, as the NFV is available in almost all other financial calcs after the HP12C and with more computing power: HP18C, 19B, 17B, 19BII, 17BII, and so. (I am not sure if the HP27S has it). The solution is trivial and already mentioned: compute NPV (net present value) with the given cash flow data and apply compound interest rate to the computed NPV (as PV) given that [n] (number of periods) matches the summation of all Nj. So, after entering all cash flow data and given [i] (interest rate), the program should automatically compute NPV, store the summation of all Nj in [n] then compute [FV], thus NFV. The program computes the summation of all Nj in the stack prior to store it in [n]. Then [PMT] is set to zero prior to compute FV. Here is the listing:
f [NPV]
RCL [n]
0
RCL g [Nj]
+
RCL g [CFj]
Rv
RCL [n]
g [x=0]
g [GTO] 13 if 12C Platinum: GTO 013
Rv
g [GTO] 04 if 12C PLatinum: GTO 004
+
STO [n]
0
[PMT]
[FV]
x<>y
[n]
Rv
CHS
g GTO 00 if 12C Platinum: GTO 000
Obs:
Rv - roll-down key
x<>y - x exchange y key
Key the program in starting at step #01, otherwise [GTO] data should be adjusted. If everything is fine, last step is #22. To compute NFV, just follow the cash flow routine to store data, key the interst rate and press [i], then press[GTO] 00
[R/S]
The expected NFV should be in the display. Please, let me know if it works as expected.
Cheers.
Luiz (Brazil)
Edited: 25 Jan 2010, 11:30 p.m.
|