FR 573 then KL 1502 at Madrid
Porto → Madrid → Amsterdam
Timetable, Madrid time
15:55FR 573 from Porto at the gate
10:50KL 1502 to Amsterdam leaves the gate
18 h 55 apart on the timetable, overnight
KL 1502 leaves 18 h 55 after FR 573 arrives on the timetable: more than half a day, so not a connection we count.