FR 5316 then IB 1217 at Madrid
Rome → Madrid → Nice
Timetable, Madrid time
23:40FR 5316 from Rome at the gate
22:00IB 1217 to Nice leaves the gatealso LA 1727, VY 5534, QR 6577
22 h 20 apart on the timetable, overnight
IB 1217 leaves 22 h 20 after FR 5316 arrives on the timetable: more than half a day, so not a connection we count.