AA 3171 then CZ 2502 at O'Hare
Phoenix → Chicago → Shanghai
Timetable, Chicago time
09:31AA 3171 from Phoenix at the gate
01:45CZ 2502 to Shanghai leaves the gate
16 h 14 apart on the timetable, overnight
CZ 2502 leaves 16 h 14 after AA 3171 arrives on the timetable: more than half a day, so not a connection we count.