DL 5161 then UA 1848 at Atlanta
Montgomery → Atlanta → San Francisco
Timetable, Atlanta time
20:35DL 5161 from Montgomery at the gate
19:18UA 1848 to San Francisco leaves the gate
22 h 43 apart on the timetable, overnight
UA 1848 leaves 22 h 43 after DL 5161 arrives on the timetable: more than half a day, so not a connection we count.