def get_percentage_infectious(dif: int) -> int:
    """Calculate the percentage to become infectious dependent on the average time

    Parameters
    ----------
    dif: int
        contains the difference between the average and the current time

    Returns
    -------
    int:
        percentage to become infectious
    """
    percentage = 5
    if dif == 1:
        percentage = 50
    elif dif == 0:
        percentage = 80
    return percentage