FR 5564 then I2 1886 at Dublin
Glasgow → Dublin → Madrid
Timetable, Dublin time
21:50FR 5564 from Glasgow at the gate
18:30I2 1886 to Madrid leaves the gate
20 h 40 apart on the timetable, overnight
I2 1886 leaves 20 h 40 after FR 5564 arrives on the timetable: more than half a day, so not a connection we count.