UA 340 then UA 1646 at San Francisco
Houston → San Francisco → Baltimore
Timetable, San Francisco time
21:46UA 340 from Houston at the gatealso EK 6155, NZ 9208, OZ 9522
21:30UA 1646 to Baltimore leaves the gatealso NZ 9032
23 h 44 apart on the timetable, overnight
UA 1646 leaves 23 h 44 after UA 340 arrives on the timetable: more than half a day, so not a connection we count.