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