UA 3904 then UA 857 at San Francisco
Denver → San Francisco → Shanghai
Timetable, San Francisco time
22:50UA 3904 from Denver at the gate
12:55UA 857 to Shanghai leaves the gatealso CA 7210
14 h 05 apart on the timetable, overnight
UA 857 leaves 14 h 05 after UA 3904 arrives on the timetable: more than half a day, so not a connection we count.