UA 3851 then UA 2225 at San Francisco
Rio De Janeiro → San Francisco → Newark
Timetable, San Francisco time
17:41UA 3851 from Rio De Janeiro at the gate
15:00UA 2225 to Newark leaves the gatealso VA 8158, NZ 9115
21 h 19 apart on the timetable, overnight
UA 2225 leaves 21 h 19 after UA 3851 arrives on the timetable: more than half a day, so not a connection we count.