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