UX 1066 then AF 4787 at Madrid
Milan → Madrid → Gran Canaria
Timetable, Madrid time
12:45UX 1066 from Milan at the gatealso ET 1422, EY 4371, AM 6850, AD 7892
10:55AF 4787 to Gran Canaria leaves the gatealso AD 6901
22 h 10 apart on the timetable, overnight
AF 4787 leaves 22 h 10 after UX 1066 arrives on the timetable: more than half a day, so not a connection we count.