Looking for a formula...

MOrlando616

New member
Joined
Mar 29, 2019
Messages
7
I have a variable that I need to increase by a percentage, some number of times. I want the increase to be compounded, so to speak.

For instance, I have 100 health, and I want to increase it by 10% each 'loop'. Instead of multiplying the increase (0.1) times the number of loops, giving me (100, 110, 120, etc)...I'd prefer to increase each new value by that percentage.

The goal result, with those numbers, would be 100, 110, 121, 133.1, etc...

I'm pretty sure this is a simple formula, but I just can't seem to land on it.

Thanks for the help!
 

Dr.Peterson

Elite Member
Joined
Nov 12, 2017
Messages
4,110
Increasing by 10% means multiplying by 110%, or 1.10. So your nth number is 100*1.1^n, with n being the number of time it's increased.

Yes, this is the same formula you've used if you've calculated compound interest!
 

MOrlando616

New member
Joined
Mar 29, 2019
Messages
7
Yes perfect! I knew it was simple, but wasn't sure...thank you!
 
Top