FR 5998 then IB 549 at Madrid
London Stansted → Madrid → Porto
Timetable, Madrid time
20:50FR 5998 from London Stansted at the gate
19:40IB 549 to Porto leaves the gate
22 h 50 apart on the timetable, overnight
IB 549 leaves 22 h 50 after FR 5998 arrives on the timetable: more than half a day, so not a connection we count.