AA 4005 then CA 8414 at O'Hare
Madison → Chicago → Shanghai
Timetable, Chicago time
21:55AA 4005 from Madison at the gate
20:45CA 8414 to Shanghai leaves the gate
22 h 50 apart on the timetable, overnight
CA 8414 leaves 22 h 50 after AA 4005 arrives on the timetable: more than half a day, so not a connection we count.