FR 9673 then FR 404 at Madrid
Rome → Madrid → Palma de Mallorca
Timetable, Madrid time
23:30FR 9673 from Rome at the gate
20:00FR 404 to Palma de Mallorca leaves the gate
20 h 30 apart on the timetable, overnight
FR 404 leaves 20 h 30 after FR 9673 arrives on the timetable: more than half a day, so not a connection we count.