IB 715 then AA 9602 at Heathrow
Madrid → London → Miami
Timetable, London time
10:35IB 715 from Madrid at the gate
08:00AA 9602 to Miami leaves the gate
21 h 25 apart on the timetable, overnight
AA 9602 leaves 21 h 25 after IB 715 arrives on the timetable: more than half a day, so not a connection we count.