HV 5956 then IB 1346 at Schiphol
Lisbon → Amsterdam → Madrid
Timetable, Amsterdam time
23:25HV 5956 from Lisbon at the gate
15:50IB 1346 to Madrid leaves the gate
16 h 25 apart on the timetable, overnight
IB 1346 leaves 16 h 25 after HV 5956 arrives on the timetable: more than half a day, so not a connection we count.