ET 741 then KM 587 at Madrid
Porto → Madrid → Valletta
Timetable, Madrid time
20:25ET 741 from Porto at the gate
12:30KM 587 to Valletta leaves the gate
16 h 05 apart on the timetable, overnight
KM 587 leaves 16 h 05 after ET 741 arrives on the timetable: more than half a day, so not a connection we count.