IB 548 then W4 7547 at Madrid
Porto → Madrid → Málaga
Timetable, Madrid time
18:55IB 548 from Porto at the gate
18:45W4 7547 to Málaga leaves the gate
23 h 50 apart on the timetable, overnight
W4 7547 leaves 23 h 50 after IB 548 arrives on the timetable: more than half a day, so not a connection we count.