FR 5316 then I2 1635 at Madrid
Rome → Madrid → Gran Canaria
Timetable, Madrid time
23:40FR 5316 from Rome at the gate
23:25I2 1635 to Gran Canaria leaves the gatealso IB 1635
23 h 45 apart on the timetable, overnight
I2 1635 leaves 23 h 45 after FR 5316 arrives on the timetable: more than half a day, so not a connection we count.