FR 275 then FR 7156 at Dublin
Glasgow → Dublin → Madrid
Timetable, Dublin time
22:50FR 275 from Glasgow at the gate
17:05FR 7156 to Madrid leaves the gate
18 h 15 apart on the timetable, overnight
FR 7156 leaves 18 h 15 after FR 275 arrives on the timetable: more than half a day, so not a connection we count.