UX 1042 then KM 587 at Madrid
Rome → Madrid → Valletta
Timetable, Madrid time
18:30UX 1042 from Rome at the gatealso EY 4338, AD 6905
12:30KM 587 to Valletta leaves the gate
18 h apart on the timetable, overnight
KM 587 leaves 18 h after UX 1042 arrives on the timetable: more than half a day, so not a connection we count.