I posted it in the Bugs section.
Duchy Totals -775 gold 0 gold -312 gold -34 gold
Duchy Totals 738 gold 0 gold 125 gold 14 gold
The crown has received -20 gold tax income thanks to a realm share of 10 %.
In addition, the realm made 155 gold from other sources (fines, etc.), bringing the crown's total income to 135 gold.
So not only did Madina ring in a massive negative debt - but all the gold collected from the rest of the Duchy of Madina to the Duke's share were put against the negative balance.
Then his share to the Ruler was negative, which removed the gold collected from the other Duchy
Finally removing bonds collected elsewhere as the sum Ruler's share before fines/etc was negative! (how do you even GIVE the ruler negative bones? - wait Abbot. you want ME to pay for YOU for running Madina? DAMN CAPITALISM!)
Anyways, obviously a few bugs in here lol.