UA 5017 then CZ 2502 at O'Hare
Hancock → Chicago → Shanghai
Timetable, Chicago time
16:00UA 5017 from Hancock at the gate
13:55CZ 2502 to Shanghai leaves the gate
21 h 55 apart on the timetable, overnight
CZ 2502 leaves 21 h 55 after UA 5017 arrives on the timetable: more than half a day, so not a connection we count.