Log In  

Cart #loan_simulator-1 | 2022-07-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4


In keeping with my name, I have created a loan simulator. It's nothing fancy, although, I did add
some bells and whistles.
It can handle $120 owed, $120 paid per month, and, interest rates from 100-200%.

Buttons:

X - Move time forward.
O - Move time backward.
Up - Change menu items.
Down - Bring down menu/Change menu items.
Left - Move time forward/Change menu items.
Right - Move time backward/Change menu items.

Behind the scenes:

Take away everything else and this is just a mathematical function f(x)=(Owed-Paid_per_month)*interest.
X grows or shrinks every loop and the result is drawn to the screen.

Programming notes:

I used the map and the tline function to create the blue background.
The paid info at the top is not bottom accurate, it is calculated by Paid_per_month*X (or time).
The line graph will have spotty changes if you move back and forth due to the difference in pixel size
versus calculation. (1.5 will round to 2 when drawing.)

P#114252 2022-07-12 21:31 ( Edited 2022-07-30 17:10)

This is really neat, @loan_wulf, but then BAM, ran into a problem.

P#114274 2022-07-13 16:01 ( Edited 2022-07-13 16:02)

Thank you for finding that dw817.
I will release the fix in the update.
For now, just stay away from “Unending loan!”

P#114391 2022-07-16 02:07

Oman gonna make me wait, @loan_wulf. You know I love numbers. :)

Alright, I can wait, I finally made some good progress here myself. Just gotta put all the working pieces in now.

P#114428 2022-07-17 01:10

Should be fixed now.
For an interesting curve try, owed=111 pay=11 int=11%. :)

P#115016 2022-07-30 17:11

The problem arose when I tweaked something right before
publishing. I should know not to do that by now. XD

P#115017 2022-07-30 17:14
1

Yeah ! That got it, @loan_wulf. I like especially that you can track it both forward and backwards. Fun to play with.

I don't see any more problems so, yep, starred and ❤️ favorited !

P#115024 2022-07-30 20:36
1

Wow, what a creative endeavor! Your loan simulator sounds like an incredibly useful tool, especially with the added touch of those bells and whistles. It's impressive how you've managed to encapsulate such complex financial calculations about easy instant loans into a simple and intuitive interface. Your attention to detail, from the programming notes to the functionality of each button, really shows your dedication to making this simulator as user-friendly as possible. Thank you for sharing your talent and hard work with us!

P#143033 2024-03-15 00:58 ( Edited 2024-03-28 13:05)

Thank you @LinkAiris for the kind words!

P#143432 2024-03-17 03:18

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 14:17:17 | 0.133s | Q:26