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