FR 2540 then IB 1611 at Madrid
Bucharest → Madrid → Gran Canaria
Timetable, Madrid time
13:55FR 2540 from Bucharest at the gate
12:45IB 1611 to Gran Canaria leaves the gate
22 h 50 apart on the timetable, overnight
IB 1611 leaves 22 h 50 after FR 2540 arrives on the timetable: more than half a day, so not a connection we count.