FR 2514 then FR 5356 at Madrid
Bucharest → Madrid → Krakow
Timetable, Madrid time
00:45FR 2514 from Bucharest at the gate
14:45FR 5356 to Krakow leaves the gate
14 h apart on the timetable
FR 5356 leaves 14 h after FR 2514 arrives on the timetable: more than half a day, so not a connection we count.