FR 5357 then IB 1145 at Madrid
Krakow → Madrid → Lisbon
Timetable, Madrid time
22:20FR 5357 from Krakow at the gate
19:40IB 1145 to Lisbon leaves the gatealso LA 1670, VY 5748
21 h 20 apart on the timetable, overnight
IB 1145 leaves 21 h 20 after FR 5357 arrives on the timetable: more than half a day, so not a connection we count.