UX 1062 then FR 5382 at Madrid
Milan → Madrid → Valletta
Timetable, Madrid time
20:45UX 1062 from Milan at the gate
09:25FR 5382 to Valletta leaves the gate
12 h 40 apart on the timetable, overnight
FR 5382 leaves 12 h 40 after UX 1062 arrives on the timetable: more than half a day, so not a connection we count.