AA 354 then MQ 3452 at Miami
Tocumen → Miami → Tampa
Timetable, Miami time
18:23AA 354 from Tocumen at the gate
17:50MQ 3452 to Tampa leaves the gate
23 h 27 apart on the timetable, overnight
MQ 3452 leaves 23 h 27 after AA 354 arrives on the timetable: more than half a day, so not a connection we count.