NH 7007 then UA 3906 at San Francisco
Newark → San Francisco → Newark
Timetable, San Francisco time
09:30NH 7007 from Newark at the gate
07:00UA 3906 to Newark leaves the gate
21 h 30 apart on the timetable, overnight
UA 3906 leaves 21 h 30 after NH 7007 arrives on the timetable: more than half a day, so not a connection we count.