FR 5322 then UX 6079 at Madrid
Milan → Madrid → Palma de Mallorca
Timetable, Madrid time
19:45FR 5322 from Milan at the gate
17:05UX 6079 to Palma de Mallorca leaves the gate
21 h 20 apart on the timetable, overnight
UX 6079 leaves 21 h 20 after FR 5322 arrives on the timetable: more than half a day, so not a connection we count.