UA 5563 then CA 1018 at O'Hare
Madison → Chicago → Shanghai
Timetable, Chicago time
19:05UA 5563 from Madison at the gate
18:40CA 1018 to Shanghai leaves the gate
23 h 35 apart on the timetable, overnight
CA 1018 leaves 23 h 35 after UA 5563 arrives on the timetable: more than half a day, so not a connection we count.