title: Calculation to find Level
body: <p>If I know the value of <code>$c_xp</code>, how can I find <code>$c_level</code> without writing 100's of if statements.</p>
  
  <pre><code>Level     XP
  1         0-99
  2         100
  3         500  +400 xp points from last level
  4         1000 +500 xp points from last level
  5         1600 +600 xp points from last level
  6         2300 +700 xp points from last level
  7         3100 +800 xp points from last level
  8         4000 +900 xp points from last level
  </code></pre>
  
  <p>And so on.</p>
  
  <pre><code>$c_level = ;
  </code></pre>