UA 1791 then DL 8841 at Dulles
San Francisco → Washington → Toronto Pearson
Timetable, Washington time
21:56UA 1791 from San Francisco at the gate
16:00DL 8841 to Toronto Pearson leaves the gate
18 h 04 apart on the timetable, overnight
DL 8841 leaves 18 h 04 after UA 1791 arrives on the timetable: more than half a day, so not a connection we count.