DL 127 then DL 5595 at JFK
Madrid → New York → Washington
Timetable, New York time
12:00DL 127 from Madrid at the gate
10:25DL 5595 to Washington leaves the gate
22 h 25 apart on the timetable, overnight
DL 5595 leaves 22 h 25 after DL 127 arrives on the timetable: more than half a day, so not a connection we count.