AR 7327 then FR 188 at Madrid
Lisbon → Madrid → Edinburgh
Timetable, Madrid time
13:50AR 7327 from Lisbon at the gate
10:30FR 188 to Edinburgh leaves the gate
20 h 40 apart on the timetable, overnight
FR 188 leaves 20 h 40 after AR 7327 arrives on the timetable: more than half a day, so not a connection we count.