FR 2514 then FR 5997 at Madrid
Bucharest → Madrid → London Stansted
Timetable, Madrid time
00:45FR 2514 from Bucharest at the gate
17:40FR 5997 to London Stansted leaves the gate
16 h 55 apart on the timetable
FR 5997 leaves 16 h 55 after FR 2514 arrives on the timetable: more than half a day, so not a connection we count.