AA 4442 then UA 5901 at O'Hare
Madison → Chicago → St Louis
Timetable, Chicago time
16:36AA 4442 from Madison at the gate
15:20UA 5901 to St Louis leaves the gate
22 h 44 apart on the timetable, overnight
UA 5901 leaves 22 h 44 after AA 4442 arrives on the timetable: more than half a day, so not a connection we count.