UA 858 then UA 785 at San Francisco
Shanghai → San Francisco → Washington
Timetable, San Francisco time
08:25UA 858 from Shanghai at the gatealso CA 7209
06:15UA 785 to Washington leaves the gatealso AZ 4408, NZ 9160
21 h 50 apart on the timetable, overnight
UA 785 leaves 21 h 50 after UA 858 arrives on the timetable: more than half a day, so not a connection we count.