UA 3917 then UA 5508 at San Francisco
Los Angeles → San Francisco → Carlsbad
Timetable, San Francisco time
19:00UA 3917 from Los Angeles at the gate
18:45UA 5508 to Carlsbad leaves the gate
23 h 45 apart on the timetable, overnight
UA 5508 leaves 23 h 45 after UA 3917 arrives on the timetable: more than half a day, so not a connection we count.