W4 6315 then LA 5745 at Barcelona
Milan → Barcelona → Málaga
Timetable, Barcelona time
12:25W4 6315 from Milan at the gate
11:40LA 5745 to Málaga leaves the gate
23 h 15 apart on the timetable, overnight
LA 5745 leaves 23 h 15 after W4 6315 arrives on the timetable: more than half a day, so not a connection we count.