UA 2318 then UA 5398 at LAX
Santa Barbara → Los Angeles → Monterey
Timetable, Los Angeles time
06:57UA 2318 from Santa Barbara at the gate
19:10UA 5398 to Monterey leaves the gate
12 h 13 apart on the timetable
UA 5398 leaves 12 h 13 after UA 2318 arrives on the timetable: more than half a day, so not a connection we count.