UA 1948 then UA 3906 at San Francisco
Cancún → San Francisco → Newark
Timetable, San Francisco time
16:52UA 1948 from Cancún at the gate
07:00UA 3906 to Newark leaves the gate
14 h 08 apart on the timetable, overnight
UA 3906 leaves 14 h 08 after UA 1948 arrives on the timetable: more than half a day, so not a connection we count.