FR 5898 then IB 1615 at Madrid
Torino → Madrid → Gran Canaria
Timetable, Madrid time
23:10FR 5898 from Torino at the gate
14:25IB 1615 to Gran Canaria leaves the gate
15 h 15 apart on the timetable, overnight
IB 1615 leaves 15 h 15 after FR 5898 arrives on the timetable: more than half a day, so not a connection we count.