W4 7542 then W4 6314 at Madrid
Málaga → Madrid → Milan
Timetable, Madrid time
10:00W4 7542 from Málaga at the gate
23:10W4 6314 to Milan leaves the gate
13 h 10 apart on the timetable
W4 6314 leaves 13 h 10 after W4 7542 arrives on the timetable: more than half a day, so not a connection we count.