FR 5494 then FR 188 at Madrid
Milan Bergamo → Madrid → Edinburgh
Timetable, Madrid time
15:20FR 5494 from Milan Bergamo at the gate
10:20FR 188 to Edinburgh leaves the gate
19 h apart on the timetable, overnight
FR 188 leaves 19 h after FR 5494 arrives on the timetable: more than half a day, so not a connection we count.