FR 573 then IB 1345 at Madrid
Porto → Madrid → Amsterdam
Timetable, Madrid time
13:30FR 573 from Porto at the gate
12:20IB 1345 to Amsterdam leaves the gate
22 h 50 apart on the timetable, overnight
IB 1345 leaves 22 h 50 after FR 573 arrives on the timetable: more than half a day, so not a connection we count.