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