Calculation of ever rising value : <p>I will like to be able to make a calculation in php using a number of experience points (XP) as base to return a level value. I want it to be increasingly more difficult for each level to rise. Like this:</p>

<pre><code>0-49 XP = Level 1
50-104 XP = Level 2
105-164 XP = Level 3
165-229 XP = Level 4 etc.
</code></pre>

<p>To reach level 2 50 XP is needed. To reach level 3 a further 55 XP is needed. To reach level 4 a further 60 XP is needed and so forth.</p>

<p>Even more I would like to be able to display the amount of XP needed to reach the next threshold.</p>

<p>I have no idea what to search for to solve my challenge. I hope you can help.</p>

<p>Thank you in advance.</p>
