When you tax earnings that comes from money being spent, be careful. As this calculation shows to much can be collected.
Money can only be in one place at a time.
It is possible as this shows to have your tax systems try to collect the same money from different sources at the same time. In this example the treasury spent 29 and 32 at the same time while the top income group has the entire 29. There is only 29 in the system. This is why there would be a deficit even though it looks like there would be a surplus. How to read chart.