Level experience point computation:
If you define as n the current level, the number of XP to the next level is:
n × (n - 1) × 500