FR 2437 then FR 7467 at Madrid
Rome → Madrid → Tangier
Timetable, Madrid time
22:45FR 2437 from Rome at the gate
10:50FR 7467 to Tangier leaves the gate
12 h 05 apart on the timetable, overnight
FR 7467 leaves 12 h 05 after FR 2437 arrives on the timetable: more than half a day, so not a connection we count.