FR 2752 then KM 587 at Madrid
Milan → Madrid → Valletta
Timetable, Madrid time
18:40FR 2752 from Milan at the gate
12:30KM 587 to Valletta leaves the gate
17 h 50 apart on the timetable, overnight
KM 587 leaves 17 h 50 after FR 2752 arrives on the timetable: more than half a day, so not a connection we count.