AA 1067 then Y8 7456 at O'Hare
New York JFK → Chicago → Shanghai
Timetable, Chicago time
22:30AA 1067 from New York JFK at the gate
19:10Y8 7456 to Shanghai leaves the gate
20 h 40 apart on the timetable, overnight
Y8 7456 leaves 20 h 40 after AA 1067 arrives on the timetable: more than half a day, so not a connection we count.