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