FR 166 then UX 1040 at Fiumicino
Beauvais → Rome → Madrid
Timetable, Rome time
15:40FR 166 from Beauvais at the gate
10:30UX 1040 to Madrid leaves the gate
18 h 50 apart on the timetable, overnight
UX 1040 leaves 18 h 50 after FR 166 arrives on the timetable: more than half a day, so not a connection we count.