E-Code

NPV, IRR, MIRR and payback — a TI-84 Plus CE program

By E-Code · updated

NPVIRR is a TI-BASIC program for the TI-84 Plus CE. Type the cash flows from year 0 (the cost, negative) on: net present value at your discount rate, internal rate of return, modified IRR, profitability index and payback period, with a warning when the flows change sign more than once.

What it asks for and what it shows

It asks for 3 values at its prompts. In the example below it shows NPV, MIRR %, PI, IRR %, PAYBACK.

Example run

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

StepValue
You enter
Input 1{⁻1000,300,400,500,200}
Input 210
Input 310
The screen shows
NPV=115.57
MIRR %=13.04893895
PI=1.115565877
IRR %=15.32213788
PAYBACK=2.6

How it's checked

5 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 32 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