EC 7154 then FR 2495 at Barcelona
Milan → Barcelona → Palma de Mallorca
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
17:30FR 2495 to Palma de Mallorca leaves the gate
18 h 15 apart on the timetable, overnight
FR 2495 leaves 18 h 15 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.