FR 5562 then FR 816 at Dublin
Glasgow → Dublin → Edinburgh
Timetable, Dublin time
20:25FR 5562 from Glasgow at the gate
13:15FR 816 to Edinburgh leaves the gate
16 h 50 apart on the timetable, overnight
FR 816 leaves 16 h 50 after FR 5562 arrives on the timetable: more than half a day, so not a connection we count.