UA 5017 then UA 3910 at O'Hare
Hancock → Chicago → Denver
Timetable, Chicago time
16:00UA 5017 from Hancock at the gate
10:30UA 3910 to Denver leaves the gate
18 h 30 apart on the timetable, overnight
UA 3910 leaves 18 h 30 after UA 5017 arrives on the timetable: more than half a day, so not a connection we count.