UA 3909 then UA 2312 at San Francisco
Houston → San Francisco → San José (Costa Rica)
Timetable, San Francisco time
07:17UA 3909 from Houston at the gate
00:08UA 2312 to San José (Costa Rica) leaves the gate
16 h 51 apart on the timetable, overnight
UA 2312 leaves 16 h 51 after UA 3909 arrives on the timetable: more than half a day, so not a connection we count.