FR 3008 then VY 1015 at Madrid
Milan → Madrid → Barcelona
Timetable, Madrid time
19:50FR 3008 from Milan at the gate
18:35VY 1015 to Barcelona leaves the gate
22 h 45 apart on the timetable, overnight
VY 1015 leaves 22 h 45 after FR 3008 arrives on the timetable: more than half a day, so not a connection we count.