FR 5316 then W4 5374 at Madrid
Rome → Madrid → London Luton
Timetable, Madrid time
23:40FR 5316 from Rome at the gate
19:15W4 5374 to London Luton leaves the gate
19 h 35 apart on the timetable, overnight
W4 5374 leaves 19 h 35 after FR 5316 arrives on the timetable: more than half a day, so not a connection we count.