def calculate_interval(timeout_int):
    """Calculates interval based on timeout.

    Some customers require long timeouts and polling every 0.1s results
    very longs logs. Poll less often if timeout is large.
    """
    if timeout_int > 60:
        interval = 3
    elif timeout_int > 10:
        interval = 1
    else:
        interval = 0.1
    return interval