AA 2524 then CA 8414 at O'Hare
San Francisco → Chicago → Shanghai
Timetable, Chicago time
21:38AA 2524 from San Francisco at the gate
20:45CA 8414 to Shanghai leaves the gate
23 h 07 apart on the timetable, overnight
CA 8414 leaves 23 h 07 after AA 2524 arrives on the timetable: more than half a day, so not a connection we count.