DL 5702 then AA 973 at JFK
Boston → New York → Rio De Janeiro
Timetable, New York time
23:00DL 5702 from Boston at the gate
22:40AA 973 to Rio De Janeiro leaves the gate
23 h 40 apart on the timetable, overnight
AA 973 leaves 23 h 40 after DL 5702 arrives on the timetable: more than half a day, so not a connection we count.