I currently have : public int experienceForLevel(int level) {
int total = 0;
for (int i = 1; i < level; i++) {
total += i + 300 * Math.pow(2, i / 7.0);
}
return (int) (total * 2.5) / 10;
} However it returns the wrong answer at low levels (1-12). For example, I have 276 experience in the Summoning skill, but it results in the level of 276, not 4. It works fine for higher levels. This is for a RS Tool im making.