KL 1504 then HV 6003 at Schiphol
Madrid → Amsterdam → Porto
Timetable, Amsterdam time
15:40KL 1504 from Madrid at the gate
15:20HV 6003 to Porto leaves the gate
23 h 40 apart on the timetable, overnight
HV 6003 leaves 23 h 40 after KL 1504 arrives on the timetable: more than half a day, so not a connection we count.