FR 2752 then FR 5382 at Madrid
Milan → Madrid → Valletta
Timetable, Madrid time
21:35FR 2752 from Milan at the gate
20:40FR 5382 to Valletta leaves the gate
23 h 05 apart on the timetable, overnight
FR 5382 leaves 23 h 05 after FR 2752 arrives on the timetable: more than half a day, so not a connection we count.