EC 1703 then W4 7547 at Madrid
Nice → Madrid → Málaga
Timetable, Madrid time
20:40EC 1703 from Nice at the gate
20:15W4 7547 to Málaga leaves the gate
23 h 35 apart on the timetable, overnight
W4 7547 leaves 23 h 35 after EC 1703 arrives on the timetable: more than half a day, so not a connection we count.