UA 5570 then Y8 7456 at O'Hare
Harrisburg → Chicago → Shanghai
Timetable, Chicago time
07:50UA 5570 from Harrisburg at the gate
01:35Y8 7456 to Shanghai leaves the gate
17 h 45 apart on the timetable, overnight
Y8 7456 leaves 17 h 45 after UA 5570 arrives on the timetable: more than half a day, so not a connection we count.