Fix typo in XP calculation.

Signed-off-by: oMadMano <localhost@gmail.com>