FR 2540 then I2 1611 at Madrid
Bucharest → Madrid → Gran Canaria
Timetable, Madrid time
13:55FR 2540 from Bucharest at the gate
10:35I2 1611 to Gran Canaria leaves the gate
20 h 40 apart on the timetable, overnight
I2 1611 leaves 20 h 40 after FR 2540 arrives on the timetable: more than half a day, so not a connection we count.