CM 2458 then UA 5508 at San Francisco
Sacramento → San Francisco → Carlsbad
Timetable, San Francisco time
20:00CM 2458 from Sacramento at the gate
18:45UA 5508 to Carlsbad leaves the gate
22 h 45 apart on the timetable, overnight
UA 5508 leaves 22 h 45 after CM 2458 arrives on the timetable: more than half a day, so not a connection we count.