hp calculators
HP 12C Net Present Value
Cash flow and NPV calculations
Cash flow diagrams
The HP12C cash flow approach
Practice solving NPV problems
How to modify cash flow entries
hp calculators
HP 12C Net Present Value
hp calculators - 2 - HP 12C Net Present Value - Version 1.0
Cash Flow and NPV calculations
Cash flow analysis is an extension of the basic TVM concepts applied to compound interest problems when payments
occur in regular periods and do not have the same value. Any financial investment can be represented as an initial
investment of money and a series of cash flows that occur in regular periods of time. Each flow of money can be positive
(received) or negative (paid out) and considered as a cash flow. Common cash flow problems usually involve the
calculation of the Internal Rate of Return (IRR) or the Net Present Value (NPV).
The NPV expresses the amount of money resulting from the summation of the initial investment (CF
0
) and the present
value of each anticipated cash flow (CF
j
) calculated to the time of the initial investment. The IRR is the discounted rate
applied to all future cash flows that cause NPV = 0.
The expression that calculates the Net Present Value is:
()() ()
j
j
2
2
1
1
0
111 i
CF
i
CF
i
CF
CFNPV
+
++
+
+
+
+= L
Figure 1
Cash flow diagrams
The cash flow diagram in Figure 1 illustrates one of the many possible situations that can be handled by the HP12C.
Figure 2
The HP12C cash flow approach
In the HP12C each cash flow amount is stored in its corresponding register in memory. For each cash flow amount there
is a related register to store the number of consecutive occurrences of this amount. This approach is shown below:
Registers Cash flow N
j
R
0
CF
0
N
0
R
1
CF
1
N
1
...
... ...
R
6
CF
6
N
6
R
7
CF
7
N
7
...
... ...
R
.8
CF
18
N
18
R
.9
CF
19
N
19
FV
CF
20
N
20
Figure 3
gJ Initial Cash Flow
gK Last Cash Flow
gK Intermediate Cash Flow
ga Number of consecutive occurrences of CFj
Composition Period
hp calculators
HP 12C Net Present Value
hp calculators - 3 - HP 12C Net Present Value - Version 1.0
The HP12C memory organization allows up to 20 different cash flow amounts plus the initial investment to be stored and
handled according to the diagram in Figure 2. If any cash flow amount repeats consecutively, then it can be stored as a
grouped cash flow CF
j
and its corresponding N
j
holds the number of occurrences, up to 99. TVM register n is used as an
index to control CF operations.
The keys to enter cash flow data are:
gJ - stores the number in the display in R
0
and sets n to zero
gK - adds 1 unit to current n contents (j) and then stores the number in the display in R
j
ga - stores the number in the display
(
)
in N
j
; n contents (j) are not changed
() The number in the display must be a positive integer from 1 to 99, otherwise ga returns to the display and
no operation is performed.
If the last available register has already been used, gK adds 1 unit to current n contents and stores the number in
the display in TVM register FV. Any attempt to add a cash flow amount with gK after FV has already been used
or when n contents refer to a register that is not available causes to be shown in the display and no
operation is performed.
Practice solving NPV problems
Example 1: The cash flow diagram below represents a possible investment and you were chosen to determine if it is
feasible. The success of this investment dictates your future in the company, so the analysis must be
precise and error free. What is the correct keystroke sequence to fill the HP12C registers with this data?
Figure 4
Solution: It is not necessary to clear all registers to start cash flow analysis because only the registers updated with
cash flow data are used.
130000 Þ gJ
7000 gK
10000 Þ gK
Figure 5
$-130,000.00
CF
0
$ 7,000.00
CF
1
$-10,000.00
CF
2
$ 20,000.00
CF
3
3 consecutive occurrences
N
3
$ 12,000.00
CF
4
$-8,000.00
CF
5
$ 178,500.00
CF
6
hp calculators
HP 12C Net Present Value
hp calculators - 4 - HP 12C Net Present Value - Version 1.0
The next cash flow amount occurs three times in a sequence, so it can be entered as a grouped cash flow.
20000 gK
3 ga
Figure 6
The remaining data is entered with the following keystroke sequence:
12000 gK
8000 Þ gK
178500 gK
Figure 7
Answer: The keystrokes presented above indicate the correct entries.
Example 2: The cash flow diagram has all of its information used to compose the cash flow data in the HP12C memory.
How can the entries be checked to ensure they are correct?
Solution: Now that all data is entered, checking for its correctness is possible in two ways. The alternative way is the
random check through the use of the : key. The procedure for this checking is as follows:
:w
Figure 8
This is the number of the last register used to store the cash flow data.
:6
Figure 9
This is the amount of CF
6
. Now check CF
3
and verify N
3
as well.
:3
Figure 10
This is CF
3
contents. To randomly check for N
j
contents, n register contents must be set to indicate which
N
j
will be recalled.
hp calculators
HP 12C Net Present Value
hp calculators - 5 - HP 12C Net Present Value - Version 1.0
3n :ga
Figure 11
Now check CF
2
and CF
0
.
:2
Figure 12
:0
Figure 13
Recall n contents to the display:
:w
Figure 14
Answer: The entries are correct.
Example 3: The investment is considered attractive if the calculated net present value is positive for a given interest
rate. Now that all data is stored and checked, calculate the NPV for a given interest rate of 8%.
Solution: If n had its contents changed, it must be restored prior to calculate either IRR or NPV:
6 w fl
Figure 15
Answer: Yes, the investment is attractive based on a net present value of $11,429.11 for an interest rate of 8%.
How to modify cash flow entries
If it happens that a cash flow entry was wrongly entered, modifying its amount is not difficult. There are two ways to
correct entries.
Example 4: Update the amount of CF
2
to $-9,500.00 and compute the new NPV after this change.
Solution 1: Type in the correct amount and store it in R
2
:
9500 Þ ?2 fl
hp calculators
HP 12C Net Present Value
hp calculators - 6 - HP 12C Net Present Value - Version 1.0
Figure 16
Solution 2: Set n register to (j-1), type in the correct amount, press gK, then restore n prior to compute NPV:
1n 9500 Þ gK 6n fl
Figure 17
To modify a wrongly entered Nj, it is necessary to change the value stored in register n.
Example 5: Now change both N
3
and N
4
to 2 and calculate NPV again. The cash flow diagram now looks like this:
Figure 18
Solution: For each correction, set n to match j, type in the correct N
j
and press ga. After all corrections, set n to
its original value and press fl.
3n 2 ga 4n 2 ga 6 n fl
Figure 19
Answer: The newly computed NPV is $ 6,413.11.
$-130,000.00
CF
0
$ 7,000.00
CF
1
$-9,500.00
CF
2
$ 20,000.00
CF
3
2 consecutive occurrences
N
3
$ 12,000.00
CF
4
$-8,000.00
CF
5
$ 178,500.00
CF
6
2 consecutive occurrences
N
4