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