When using the number 70, it gives me 115 as the required exp. When using a calculator, I get 571,666. If it matters at all, the variables player_level, required_exp and player_level are global.
Or faster: level*level*level. If you use this one, you'll need to change your dividend to 3.f, or you'll use integer division instead of floating point division.