AA 1074 then DL 5702 at Boston
Miami → Boston → New York JFK
Timetable, Boston time
19:35AA 1074 from Miami at the gate
19:30DL 5702 to New York JFK leaves the gate
23 h 55 apart on the timetable, overnight
DL 5702 leaves 23 h 55 after AA 1074 arrives on the timetable: more than half a day, so not a connection we count.