i was wondering if the treasury was working as it should
It looks like it's giving you 1% interest on your current treasury, and treating that as city income. The 1% interest is alright, but I'm not sure that it is supposed to add to the city income and gain a bonus based on city gildar bonuses, though. Also, that the interest is affected by your tax rate seems wrong to me.