E-Code

Compare two loans (APR with fees) — a TI-84 Plus CE program

By E-Code · updated

LOANCMP is a TI-BASIC program for the TI-84 Plus CE. Two monthly-payment offers for the same amount, each with its own rate, term and up-front fees: payments, total cost, the true APR once fees are counted, and which one is cheaper overall and by how much.

What it asks for and what it shows

It asks for 7 values at its prompts. In the example below it shows PMT A, PMT B, TOT A, TOT B, APR A, APR B, B SAVES.

Example run

One of its oracle test cases: “mortgage: pay points for a lower rate?”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 1250000
Input 26.5
Input 330
Input 40
Input 56
Input 630
Input 75000
The screen shows
PMT A=1580.17
PMT B=1498.88
TOT A=568861.22
TOT B=544595.47
APR A=6.5
APR B=6.189476257
TextB SAVES

How it's checked

4 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 30 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-84 Plus CE finance programs · All TI-84 Plus CE programs