UA 2313 then UA 3906 at San Francisco
San José (Costa Rica) → San Francisco → Newark
Timetable, San Francisco time
14:42UA 2313 from San José (Costa Rica) at the gate
07:00UA 3906 to Newark leaves the gate
16 h 18 apart on the timetable, overnight
UA 3906 leaves 16 h 18 after UA 2313 arrives on the timetable: more than half a day, so not a connection we count.