W4 6311 then FR 2775 at Madrid
Milan → Madrid → Palma de Mallorca
Timetable, Madrid time
09:10W4 6311 from Milan at the gate
21:15FR 2775 to Palma de Mallorca leaves the gate
12 h 05 apart on the timetable
FR 2775 leaves 12 h 05 after W4 6311 arrives on the timetable: more than half a day, so not a connection we count.