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