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