The Tax is easy enough as it just reduces the Interest rate (so 9% becomes 8.1%)

**=D2*((1+((D3*(1-D7))/D4))^**(D4*D5)) where D7 is the Tax.

But the Deduction as a fixed value before or after tax, you may need to go line by line to calculate the net effect.