Use the variable total_max_workflow_duration.