FR 3877 then EI 595 at Madrid
Tangier → Madrid → Dublin
Timetable, Madrid time
22:35FR 3877 from Tangier at the gate
20:35EI 595 to Dublin leaves the gate
22 h apart on the timetable, overnight
EI 595 leaves 22 h after FR 3877 arrives on the timetable: more than half a day, so not a connection we count.