DL 939 then DL 126 at JFK
Los Angeles → New York → Madrid
Timetable, New York time
20:59DL 939 from Los Angeles at the gate
18:05DL 126 to Madrid leaves the gate
21 h 06 apart on the timetable, overnight
DL 126 leaves 21 h 06 after DL 939 arrives on the timetable: more than half a day, so not a connection we count.