AZ 64 then FR 6410 at Madrid
Rome → Madrid → Sofia
Timetable, Madrid time
00:05AZ 64 from Rome at the gate
17:05FR 6410 to Sofia leaves the gate
17 h apart on the timetable
FR 6410 leaves 17 h after AZ 64 arrives on the timetable: more than half a day, so not a connection we count.