def check_if_time_is_over(start_time, interval_minutes, max_script_exec_time_minutes):
    """Returns True if function's execution time is less than interval between function executions and
    less than max azure func lifetime. In other case returns False."""
    
    logging.getLogger().setLevel(logging.INFO)
    max_minutes = min(interval_minutes, max_script_exec_time_minutes)
    if max_minutes > 1:
        max_time = max_minutes * 60 - 30
    else:
        max_time = 50
    script_execution_time = time.time() - start_time
    if script_execution_time > max_time:
        return True
    else:
        return False
Returns True if function's execution time is less than interval between function executions and
    less than max azure func lifetime. In other case returns False.
Solutions/Box/Data Connectors/AzureFunctionBox/main.py