FR 8716 then FR 188 at Madrid
Manchester → Madrid → Edinburgh
Timetable, Madrid time
16:45FR 8716 from Manchester at the gate
10:30FR 188 to Edinburgh leaves the gate
17 h 45 apart on the timetable, overnight
FR 188 leaves 17 h 45 after FR 8716 arrives on the timetable: more than half a day, so not a connection we count.