When_to_complete_job