UA 4040 then WN 994 at Atlanta
Houston → Atlanta → Baltimore
Timetable, Atlanta time
10:36UA 4040 from Houston at the gate
09:40WN 994 to Baltimore leaves the gate
23 h 04 apart on the timetable, overnight
WN 994 leaves 23 h 04 after UA 4040 arrives on the timetable: more than half a day, so not a connection we count.