W4 3171 then FR 5382 at Madrid
Bucharest → Madrid → Valletta
Timetable, Madrid time
09:45W4 3171 from Bucharest at the gate
06:20FR 5382 to Valletta leaves the gate
20 h 35 apart on the timetable, overnight
FR 5382 leaves 20 h 35 after W4 3171 arrives on the timetable: more than half a day, so not a connection we count.