UA 3904 then UA 1278 at San Francisco
Denver → San Francisco → Chicago O'Hare
Timetable, San Francisco time
22:50UA 3904 from Denver at the gate
16:10UA 1278 to Chicago O'Hare leaves the gatealso AC 4674, NZ 9312
17 h 20 apart on the timetable, overnight
UA 1278 leaves 17 h 20 after UA 3904 arrives on the timetable: more than half a day, so not a connection we count.