- Compounding Interest Calc (need optimization help)
- 09 Sep 2019 08:17:27 am
- Last edited by Izder456 on 11 Sep 2019 09:22:26 am; edited 1 time in total

Hey guys, back when I posted the clock program, I got a lot of good feedback of how to optimise the program. And I'm back at it again, This time, with a compounding interest calculator that simulates percent growth daily, and I even implemented saving money per day. The only problem is, that it runs absurdly slow and I want to optimise it. This was originally written for the V200 and it ran even slower on there. I tried <<translating>> the code to TI84-BASIC in hopes it would be more accessible to the many. If you guys want the original code, I can edit it into the OP.

Thanks ahead of time for your guys' help!

Here's The Code for Ti-84/83:

Thanks ahead of time for your guys' help!

Here's The Code for Ti-84/83:

**Code:**```
```

//Setup

ClrHome

0->T:0->I

0->M:0->C:0->E

0->L:0->P:0->D

Fix 2

//Splash

Disp "The Power of Compounding"

Disp "by: Ajzek Mejer"

Pause

ClrHome

//Input

Input "Bal? ",C

Input "%? ",P

Input "Yrs? ",L

Input "Dollar? ",D

P/365->P

//Calculate

ClrHome

Disp "Caculating..."

Disp ""

If D=0

Then

For(T,1,L,1

For(I,0,365,1

(P+1)*C->C

End

Disp "Yr:",T

Disp "Bal:",C

Disp ""

End

End

If D=1

Then

Input "How Many $? ",M

For(T,1,L,1

For(I,0,365,1

C+M->C

(P+1)*C->C

End

Disp "Yr:",T

Disp "Bal:",C

End

End

Pause

C->E

//Final

ClrHome

Disp "Final Bal:",E