AA 2945 then AA 1172 at Miami
Baltimore → Miami → San Juan
Timetable, Miami time
18:49AA 2945 from Baltimore at the gate
17:55AA 1172 to San Juan leaves the gate
23 h 06 apart on the timetable, overnight
AA 1172 leaves 23 h 06 after AA 2945 arrives on the timetable: more than half a day, so not a connection we count.