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