FR 813 then EI 594 at Dublin
Edinburgh → Dublin → Madrid
Timetable, Dublin time
18:15FR 813 from Edinburgh at the gate
16:15EI 594 to Madrid leaves the gate
22 h apart on the timetable, overnight
EI 594 leaves 22 h after FR 813 arrives on the timetable: more than half a day, so not a connection we count.