AA 2389 then UA 5940 at O'Hare
Calgary → Chicago → Peoria
Timetable, Chicago time
18:44AA 2389 from Calgary at the gate
16:40UA 5940 to Peoria leaves the gate
21 h 56 apart on the timetable, overnight
UA 5940 leaves 21 h 56 after AA 2389 arrives on the timetable: more than half a day, so not a connection we count.