https://www.desmos.com/calculator/xchardwiqh Find the xp values you get per block on the mcmmo wiki. Adjust the sliders or the numbers just above them to change the goal level, your current level, or the xp gained per block.
It calculates the amount of blocks you need to break to get enough xp to reach a certain level and it calculates how close you are to a certain level from level 0 in percent.