AA 215 then UA 5940 at O'Hare
Cancún → Chicago → Peoria
Timetable, Chicago time
17:40AA 215 from Cancún at the gate
16:40UA 5940 to Peoria leaves the gate
23 h apart on the timetable, overnight
UA 5940 leaves 23 h after AA 215 arrives on the timetable: more than half a day, so not a connection we count.