AA 1195 then Y8 7456 at O'Hare
Buffalo → Chicago → Shanghai
Timetable, Chicago time
09:05AA 1195 from Buffalo at the gate
01:35Y8 7456 to Shanghai leaves the gate
16 h 30 apart on the timetable, overnight
Y8 7456 leaves 16 h 30 after AA 1195 arrives on the timetable: more than half a day, so not a connection we count.