UA 878 then UA 3906 at San Francisco
Hong Kong → San Francisco → Newark
Timetable, San Francisco time
18:55UA 878 from Hong Kong at the gate
07:00UA 3906 to Newark leaves the gate
12 h 05 apart on the timetable, overnight
UA 3906 leaves 12 h 05 after UA 878 arrives on the timetable: more than half a day, so not a connection we count.