E-Code

Time value of money: leave one blank — a TI-89 Titanium program

By E-Code · updated

TVM89 is a TI-89 BASIC program for the TI-89 Titanium. N, I%, PV, PMT and FV in one dialog — leave the unknown BLANK (money paid out is negative, payments at period end); the rate is found by scan and bisection.

What it asks for and what it shows

It asks for 6 values at its prompts. In the example below it shows N, I%, PV, PMT, FV.

Example run

One of its oracle test cases: “mortgage payment”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 1360
Input 26.5
Input 3300000
Input 4
Input 50
Input 612
The screen shows
N=360
I%=6.5
PV=300000
PMT=-1896.2
FV=0

How it's checked

6 test cases, each checked against an independent method. Replayed key by key on a virtual TI-89 Titanium, they make 38 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-89 Titanium finance programs · All TI-89 Titanium programs