FR 5316 then I2 1665 at Madrid
Rome → Madrid → Palma de Mallorca
Timetable, Madrid time
23:40FR 5316 from Rome at the gate
13:40I2 1665 to Palma de Mallorca leaves the gatealso IB 1665
14 h apart on the timetable, overnight
I2 1665 leaves 14 h after FR 5316 arrives on the timetable: more than half a day, so not a connection we count.