AA 2945 then AA 1185 at Miami
Baltimore → Miami → New York JFK
Timetable, Miami time
18:49AA 2945 from Baltimore at the gate
16:30AA 1185 to New York JFK leaves the gate
21 h 41 apart on the timetable, overnight
AA 1185 leaves 21 h 41 after AA 2945 arrives on the timetable: more than half a day, so not a connection we count.