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