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