The Experience Formula based on the Level is as follows:
where is the Level.
To find out how much experience you need to advance to the next level, simply subtract the amount of experience of the next level from the current amount of experience that your character has. You can also find a premade experience table here.
Another way to find out how much experience you need to advance to the next level, is the following formula (credit to Aopa Gody):
is the amount of experience needed to level from level x-1 to level x.
If you want to know how many of the same creatures you need to kill in order to advance to the next level, you need to find out the amount of experience needed for the next level as explained before, and divide that by the total experience points that the creature gives you.
Mathematics behind the formula
The experience needed to advance from level to level is
From this we can calculate the experience required to advance from level to level by the summation
By substituting the modified Gauss equations
For example, level 15: