UX 1140 then FR 5356 at Madrid
Porto → Madrid → Krakow
Timetable, Madrid time
18:15UX 1140 from Porto at the gatealso AM 6853, EY 7521, AD 7870
17:50FR 5356 to Krakow leaves the gate
23 h 35 apart on the timetable, overnight
FR 5356 leaves 23 h 35 after UX 1140 arrives on the timetable: more than half a day, so not a connection we count.