UA 5935 then AC 1038 at Denver
Salt Lake City → Denver → Toronto
Timetable, Denver time
20:03UA 5935 from Salt Lake City at the gate
13:30AC 1038 to Toronto leaves the gate
17 h 27 apart on the timetable, overnight
AC 1038 leaves 17 h 27 after UA 5935 arrives on the timetable: more than half a day, so not a connection we count.