FR 2514 then AV 6508 at Madrid
Bucharest → Madrid → Frankfurt am Main
Timetable, Madrid time
22:35FR 2514 from Bucharest at the gate
17:15AV 6508 to Frankfurt am Main leaves the gate
18 h 40 apart on the timetable, overnight
AV 6508 leaves 18 h 40 after FR 2514 arrives on the timetable: more than half a day, so not a connection we count.