W4 6013 then 3O 392 at Madrid
Rome → Madrid → Tangier
Timetable, Madrid time
19:55W4 6013 from Rome at the gate
17:303O 392 to Tangier leaves the gate
21 h 35 apart on the timetable, overnight
3O 392 leaves 21 h 35 after W4 6013 arrives on the timetable: more than half a day, so not a connection we count.