AA 2231 then UX 98 at Miami
Cleveland → Miami → Madrid
Timetable, Miami time
21:51AA 2231 from Cleveland at the gate
21:45UX 98 to Madrid leaves the gate
23 h 54 apart on the timetable, overnight
UX 98 leaves 23 h 54 after AA 2231 arrives on the timetable: more than half a day, so not a connection we count.