FR 817 then FR 3995 at Dublin
Edinburgh → Dublin → Agadir
Timetable, Dublin time
13:30FR 817 from Edinburgh at the gate
07:10FR 3995 to Agadir leaves the gate
17 h 40 apart on the timetable, overnight
FR 3995 leaves 17 h 40 after FR 817 arrives on the timetable: more than half a day, so not a connection we count.