FR 4023 then IB 532 at Lisbon
Krakow → Lisbon → Madrid
Timetable, Lisbon time
16:30FR 4023 from Krakow at the gate
12:30IB 532 to Madrid leaves the gate
20 h apart on the timetable, overnight
IB 532 leaves 20 h after FR 4023 arrives on the timetable: more than half a day, so not a connection we count.