def get_connection_retry_time(time: int) -> int:
    """Returns time to wait for connection retry

    Args:
        time (int): current retry wait time

    Returns:
        int: next retry wait time
    """
    return time if (time == 16) else time * 2