DY 3704 then AF 4787 at Madrid
Copenhagen → Madrid → Gran Canaria
Timetable, Madrid time
11:30DY 3704 from Copenhagen at the gate
10:55AF 4787 to Gran Canaria leaves the gatealso AD 6901
23 h 25 apart on the timetable, overnight
AF 4787 leaves 23 h 25 after DY 3704 arrives on the timetable: more than half a day, so not a connection we count.