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