FR 2776 then FR 3009 at Madrid
Palma de Mallorca → Madrid → Milan
Timetable, Madrid time
15:55FR 2776 from Palma de Mallorca at the gate
14:25FR 3009 to Milan leaves the gate
22 h 30 apart on the timetable, overnight
FR 3009 leaves 22 h 30 after FR 2776 arrives on the timetable: more than half a day, so not a connection we count.