B6 2901 then DL 126 at JFK
Buffalo → New York → Madrid
Timetable, New York time
18:43B6 2901 from Buffalo at the gate
18:05DL 126 to Madrid leaves the gate
23 h 22 apart on the timetable, overnight
DL 126 leaves 23 h 22 after B6 2901 arrives on the timetable: more than half a day, so not a connection we count.