FR 5357 then U2 3210 at Madrid
Krakow → Madrid → Edinburgh
Timetable, Madrid time
19:25FR 5357 from Krakow at the gate
18:55U2 3210 to Edinburgh leaves the gate
23 h 30 apart on the timetable, overnight
U2 3210 leaves 23 h 30 after FR 5357 arrives on the timetable: more than half a day, so not a connection we count.