DL 8842 then LH 9866 at Boston
New York JFK → Boston → New York JFK
Timetable, Boston time
20:00DL 8842 from New York JFK at the gate
18:00LH 9866 to New York JFK leaves the gate
22 h apart on the timetable, overnight
LH 9866 leaves 22 h after DL 8842 arrives on the timetable: more than half a day, so not a connection we count.