FR 6712 then IB 151 at Madrid
Budapest → Madrid → Bogota
Timetable, Madrid time
18:10FR 6712 from Budapest at the gate
12:10IB 151 to Bogota leaves the gate
18 h apart on the timetable, overnight
IB 151 leaves 18 h after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.