public static int getPercentToLevel(final int index, final int endLvl) {
			if (index > SKILL_NAMES.length - 1) {
				return -1;
			}
			final int lvl = getRealLevel(index);
			if (index == DUNGEONEERING && (lvl == 120 || endLvl > 120)) {
				return 0;
			} else if (lvl == 99 || endLvl > 99) {
				return 0;
			}
			final int xpTotal = XP_TABLE[endLvl] - XP_TABLE[lvl];
			if (xpTotal == 0) {
				return 0;
			}
			final int xpDone = getCurrentExp(index) - XP_TABLE[lvl];
			return 100 * xpDone / xpTotal;
		}