def amino_function(weight: float, sport_a_week: int) -> float:
    """
    Calculates 24hour calory need.
    Returns -1 in any error case.
    :param weight: float, kilograms
    :param sport_a_week: int, times. do sport times a week amount.
    :return:
    """

    amino = -1

    if sport_a_week <= 0:
        amino = 1.4*weight
    elif 3 >= sport_a_week >= 1:
        amino = 2.2*weight
    elif 5 >= sport_a_week > 3:
        amino = 3.4*weight
    elif 7 >= sport_a_week > 5:
        amino = 4*weight
    else:
        amino = weight

    return amino