AA 2556 then Y8 7456 at O'Hare
San Diego → Chicago → Shanghai
Timetable, Chicago time
19:59AA 2556 from San Diego at the gate
19:10Y8 7456 to Shanghai leaves the gate
23 h 11 apart on the timetable, overnight
Y8 7456 leaves 23 h 11 after AA 2556 arrives on the timetable: more than half a day, so not a connection we count.