FR 347 then FR 5484 at Madrid
London Stansted → Madrid → Porto
Timetable, Madrid time
22:35FR 347 from London Stansted at the gate
21:40FR 5484 to Porto leaves the gate
23 h 05 apart on the timetable, overnight
FR 5484 leaves 23 h 05 after FR 347 arrives on the timetable: more than half a day, so not a connection we count.