UA 1948 then UA 5627 at San Francisco
Cancún → San Francisco → Monterey
Timetable, San Francisco time
16:52UA 1948 from Cancún at the gate
16:20UA 5627 to Monterey leaves the gatealso LH 8824
23 h 28 apart on the timetable, overnight
UA 5627 leaves 23 h 28 after UA 1948 arrives on the timetable: more than half a day, so not a connection we count.