FR 4274 then FR 5713 at Madrid
Tirana → Madrid → Budapest
Timetable, Madrid time
18:45FR 4274 from Tirana at the gate
09:40FR 5713 to Budapest leaves the gate
14 h 55 apart on the timetable, overnight
FR 5713 leaves 14 h 55 after FR 4274 arrives on the timetable: more than half a day, so not a connection we count.