UA 3904 then UA 5479 at San Francisco
Denver → San Francisco → Monterey
Timetable, San Francisco time
22:50UA 3904 from Denver at the gate
12:05UA 5479 to Monterey leaves the gate
13 h 15 apart on the timetable, overnight
UA 5479 leaves 13 h 15 after UA 3904 arrives on the timetable: more than half a day, so not a connection we count.