FR 5494 then FR 2629 at Madrid
Milan Bergamo → Madrid → London Stansted
Timetable, Madrid time
21:40FR 5494 from Milan Bergamo at the gate
12:10FR 2629 to London Stansted leaves the gate
14 h 30 apart on the timetable, overnight
FR 2629 leaves 14 h 30 after FR 5494 arrives on the timetable: more than half a day, so not a connection we count.