Is it possible with a formula?

Is it possible to use a js formula so that the solution will increase after a set interval?

Like if I want the max experience of a character to increase by ten every ten levels? How would I do that? Is it even possible?
bump
Hi, I'm not sure if this is what you're asking for, but the mathematical approach to this could be something like this: 10 * Math.floor(user.level / 10)
The result of this formula will increase by 10 every 10 levels.
Hope that help!

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-with-a-formula.116799/