KM 586 then AV 6204 at Madrid
Valletta → Madrid → Rome
Timetable, Madrid time
20:40KM 586 from Valletta at the gate
18:00AV 6204 to Rome leaves the gate
21 h 20 apart on the timetable, overnight
AV 6204 leaves 21 h 20 after KM 586 arrives on the timetable: more than half a day, so not a connection we count.