KM 586 then IB 795 at Madrid
Valletta → Madrid → Vienna
Timetable, Madrid time
20:40KM 586 from Valletta at the gate
16:00IB 795 to Vienna leaves the gatealso LA 1634, VY 5076, AT 5494, AA 8712
19 h 20 apart on the timetable, overnight
IB 795 leaves 19 h 20 after KM 586 arrives on the timetable: more than half a day, so not a connection we count.