FR 3008 then VY 5274 at Madrid
Milan → Madrid → Palma de Mallorca
Timetable, Madrid time
19:50FR 3008 from Milan at the gate
12:30VY 5274 to Palma de Mallorca leaves the gate
16 h 40 apart on the timetable, overnight
VY 5274 leaves 16 h 40 after FR 3008 arrives on the timetable: more than half a day, so not a connection we count.