API:GetPlayerMaxExp

Returns how much experiance your level needs. (without your gained experiance) GetPlayerMaxExp

Returns
a Number

Example
/script DEFAULT_CHAT_FRAME:AddMessage(GetPlayerMaxExp);

Returns the amount of experiance points the current level needs.