def calc_max_match(match_percent, match_salary, income):
    """
    Calculates the max 401k match the user can contribute.

    """
    match_needed = match_percent * match_salary * income
    return match_needed