Hi. Another math question. I don't know the name for this method so bare with me. So I have a maximum value of 999. A player can increase the value by 25%, 50%, 75% or 100% until it reaches 999. How do I make it so when the value is 500, 50% won't make it go over for example by reducing the amount 50% can generate?