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