UA 5027 then UA 1036 at Houston
Montgomery → Houston → Baltimore
Timetable, Houston time
19:03UA 5027 from Montgomery at the gate
18:40UA 1036 to Baltimore leaves the gate
23 h 37 apart on the timetable, overnight
UA 1036 leaves 23 h 37 after UA 5027 arrives on the timetable: more than half a day, so not a connection we count.