FR 80 then IB 818 at Copenhagen
Budapest → Copenhagen → Madrid
Timetable, Copenhagen time
19:40FR 80 from Budapest at the gate
15:30IB 818 to Madrid leaves the gate
19 h 50 apart on the timetable, overnight
IB 818 leaves 19 h 50 after FR 80 arrives on the timetable: more than half a day, so not a connection we count.