UA 4500 then UA 2786 at Dulles
Detroit → Washington → San Francisco
Timetable, Washington time
21:17UA 4500 from Detroit at the gate
18:20UA 2786 to San Francisco leaves the gate
21 h 03 apart on the timetable, overnight
UA 2786 leaves 21 h 03 after UA 4500 arrives on the timetable: more than half a day, so not a connection we count.