IB 52 then AA 9602 at Madrid
Málaga → Madrid → Philadelphia
Timetable, Madrid time
13:15IB 52 from Málaga at the gate
13:00AA 9602 to Philadelphia leaves the gate
23 h 45 apart on the timetable, overnight
AA 9602 leaves 23 h 45 after IB 52 arrives on the timetable: more than half a day, so not a connection we count.