UA 3851 then OZ 9523 at San Francisco
Rio De Janeiro → San Francisco → Newark
Timetable, San Francisco time
17:41UA 3851 from Rio De Janeiro at the gate
16:30OZ 9523 to Newark leaves the gate
22 h 49 apart on the timetable, overnight
OZ 9523 leaves 22 h 49 after UA 3851 arrives on the timetable: more than half a day, so not a connection we count.