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