FR 189 then DL 6754 at Madrid
Edinburgh → Madrid → Porto
Timetable, Madrid time
13:55FR 189 from Edinburgh at the gate
10:35DL 6754 to Porto leaves the gatealso AM 6893, EY 7517, AD 7868
20 h 40 apart on the timetable, overnight
DL 6754 leaves 20 h 40 after FR 189 arrives on the timetable: more than half a day, so not a connection we count.