import math


def calc_lvl(curr_exp):
    """'
    calculates the resulting level, from given exp points
    :param curr_exp: current experience
    :return: resulting level truncated eg. 4.6 = 4
    """
    lvl = math.trunc(math.floor(25 + math.sqrt(625 + 100 * curr_exp)) / 50)
    return int(lvl)