UA 3851 then UA 871 at San Francisco
Rio De Janeiro → San Francisco → Taipei
Timetable, San Francisco time
17:41UA 3851 from Rio De Janeiro at the gate
13:35UA 871 to Taipei leaves the gate
19 h 54 apart on the timetable, overnight
UA 871 leaves 19 h 54 after UA 3851 arrives on the timetable: more than half a day, so not a connection we count.