AA 4780 then CZ 438 at O'Hare
Buffalo → Chicago → Shanghai
Timetable, Chicago time
12:40AA 4780 from Buffalo at the gate
01:45CZ 438 to Shanghai leaves the gate
13 h 05 apart on the timetable, overnight
CZ 438 leaves 13 h 05 after AA 4780 arrives on the timetable: more than half a day, so not a connection we count.