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