# hp calculators

### Text-only Preview

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
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 usual y 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 (CF0) and the present
value of each anticipated cash flow (CFj) 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:
CF
CF
CF
1
2
j
NPV =
0
CF + (
+
+
+
L
Figure 1
1+ i)1 (1+ i)2
(1+ i)j
Cash flow diagrams
The cash flow diagram in Figure 1 illustrates one of the many possible situations that can be handled by the HP12C.
Composition Period
gK Last Cash Flow
gK Intermediate Cash Flow
gJ Initial Cash Flow
ga Number of consecutive occurrences of CFj
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
Nj
R0
CF0
N0
R1
CF1
N1
...
...
...
R6
CF6
N6
R7
CF7
N7
...
...
...
R.8
CF18
N18
R.9
CF19
N19
Figure 3
FV
CF20
N20
hp calculators
- 2 -
HP 12C Net Present Value - Version 1.0

hp calculators
HP 12C Net Present Value
The HP12C memory organization al ows 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 CFj and its corresponding Nj 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 R0 and sets n to zero
gK - adds 1 unit to current n contents (j) and then stores the number in the display in Rj
ga - stores the number in the display(∗) in Nj; 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?
\$ 178,500.00
\$ 20,000.00
CF6
CF3
\$ 7,000.00
\$ 12,000.00
CF
CF4
1
3 consecutive occurrences
N3
\$-10,000.00
\$-8,000.00
\$-130,000.00
CF
CF
CF
2
5
0
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
hp calculators
- 3 -
HP 12C Net Present Value - Version 1.0

hp calculators
HP 12C Net Present Value
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
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 CF6. Now check CF3 and verify N3 as wel .
:3
Figure 10
This is CF3 contents. To randomly check for Nj contents, n register contents must be set to indicate which
Nj will be recalled.
hp calculators
- 4 -
HP 12C Net Present Value - Version 1.0

hp calculators
HP 12C Net Present Value
3n :ga
Figure 11
Now check CF2 and CF0.
:2
Figure 12
:0
Figure 13
Recal n contents to the display:
:w
Figure 14
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
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 CF2 to \$-9,500.00 and compute the new NPV after this change.
Solution 1: Type in the correct amount and store it in R2:
9500 Þ ?2 fl
hp calculators
- 5 -
HP 12C Net Present Value - Version 1.0

hp calculators
HP 12C Net Present Value
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 N3 and N4 to 2 and calculate NPV again. The cash flow diagram now looks like this:
\$ 178,500.00
\$ 20,000.00
CF6
CF
\$ 12,000.00
3
\$ 7,000.00
CF4
CF1
2 consecutive occurrences
2 consecutive occurrences
N3
N4
\$-9,500.00
\$-8,000.00
CF2
CF
\$-130,000.00
5
CF0
Figure 18
Solution:
For each correction, set n to match j, type in the correct Nj 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