AA 5849 then UA 3671 at Charlotte
Montgomery → Charlotte → Chicago O'Hare
Timetable, Charlotte time
15:35AA 5849 from Montgomery at the gate
15:30UA 3671 to Chicago O'Hare leaves the gate
23 h 55 apart on the timetable, overnight
UA 3671 leaves 23 h 55 after AA 5849 arrives on the timetable: more than half a day, so not a connection we count.