UA 3851 then NZ 4612 at San Francisco
Rio De Janeiro → San Francisco → Vancouver
Timetable, San Francisco time
17:41UA 3851 from Rio De Janeiro at the gate
16:55NZ 4612 to Vancouver leaves the gatealso UA 8506
23 h 14 apart on the timetable, overnight
NZ 4612 leaves 23 h 14 after UA 3851 arrives on the timetable: more than half a day, so not a connection we count.