UA 5980 then UA 5398 at LAX
Phoenix Sky Harbor → Los Angeles → Monterey
Timetable, Los Angeles time
20:18UA 5980 from Phoenix Sky Harbor at the gate
19:10UA 5398 to Monterey leaves the gate
22 h 52 apart on the timetable, overnight
UA 5398 leaves 22 h 52 after UA 5980 arrives on the timetable: more than half a day, so not a connection we count.