income value and a marital status (S for single individual, M for married) as given values, and outputs the amount of taxes due. Note how taxes work: you do not pay the listed rate on all of your income, but it is incremental. For example, if you make $30,000 per year as a single individual, you would pay 10% on $9,875, and 12% on the remaining income.
Fig: 1
Fig: 2