UA 3904 then UA 5200 at San Francisco
Denver → San Francisco → Phoenix
Timetable, San Francisco time
22:50UA 3904 from Denver at the gate
15:30UA 5200 to Phoenix leaves the gate
16 h 40 apart on the timetable, overnight
UA 5200 leaves 16 h 40 after UA 3904 arrives on the timetable: more than half a day, so not a connection we count.