UA 1275 then UA 4754 at LAX
Cancún → Los Angeles → Sacramento
Timetable, Los Angeles time
17:34UA 1275 from Cancún at the gate
16:30UA 4754 to Sacramento leaves the gate
22 h 56 apart on the timetable, overnight
UA 4754 leaves 22 h 56 after UA 1275 arrives on the timetable: more than half a day, so not a connection we count.