The Museum of HP Calculators


Cash Flow Programs for the HP50

This program is by Eddie Shore and is used here by permission.

This program is supplied without representation or warranty of any kind. Eddie Shore and The Museum of HP Calculators therefore assume no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof.

Overview

Three programs to analyze cash flows given an interest rate:

NPV - Net Present Value
NFV - Net Future Value
NUS - Net Utility Stream (what would the payments be per period if they were all equal?)

All three programs take the same two arguments:

FLOWS, Interest Rate per Period

FLOWS = {Initial Cash Flow, Cash Flow Pd 1, Cash Flow Pd 2, .... , Cash Flow Pd N}

Enter outflows (i.e. payments) as negative.

Source for formulas: HP 17BII+, HP 12C

Listing

In the programs: ΣList = the sum of the list command in the Math Menu:
↰ MTH List ΣList.


NPV:
« → FLOWS R
« FLOWS 1. 1. R % + 'X' 'X' 0. FLOWS
SIZE 1. - 1. SEQ ^ ÷ ΣList →NUM » »

NFV:
« → FLOWS R
« FLOWS 1 1 R % + 'X' 'X' 0. FLOWS
SIZE 1. - 1. SEQ ^ REVLIST × ΣList →NUM » »

NUS:
« → FLOWS I
« 1. 'PYR' STO FLOWS SIZE 1. - 'N' I 'I%/YR' STO STO FLOWS 
I NPV 'PV' STO 0. 'FV' STO 'PMT' TVMROOT NEG » »

Go back to the software library
Go back to the main exhibit hall