Forum Discussion

HankBrice's avatar
HankBrice
Community Member
5 years ago

Javascript to calculate what a slider displays

Hi everyone!

I want to use a slider that shows how compound interest works.  Where you could set the beginning balance and the interest rate and then the slider would use it, as it slid over time, to show a displayed value of total interest owed.

The equation would be:

Displayed Value = Beginning Balance * (1 + Interest Rate) ^ Time

Any idea how to do this using javascript or even triggers if possible?

Thanks in advance!

 

2 Replies