import math


def get_exp_between_levels(level1: int, level2: int):
    """
    Gets the amoount of exp between two levels

    :param level1: The low level
    :param level2: The high level
    """

    exp1 = 0
    exp2 = 0

    for i in range(1, level2):
        if i < level1:
            exp1 += math.floor(i + 300 * 2**(i/7))
        exp2 += math.floor(i + 300 * 2**(i/7))

    return math.floor(exp2 / 4) - math.floor(exp1 / 4)