UA 5599 then WN 2516 at San Francisco
Carlsbad → San Francisco → Los Angeles
Timetable, San Francisco time
15:30UA 5599 from Carlsbad at the gate
14:40WN 2516 to Los Angeles leaves the gate
23 h 10 apart on the timetable, overnight
WN 2516 leaves 23 h 10 after UA 5599 arrives on the timetable: more than half a day, so not a connection we count.