<s>[INST] A bank account starts with a balance of $1000.  Every month, the bank pays a 5% interest, and in the middle of the month, $100 is withdrawn.

Let's say that the 5% interest is not compounded. I want to be able to calculate the balance after 12 months.  

Now I want to also consider a tax that is applied quarterly. Let's say that the tax is 20% on the monthly interest. 

Can you write a Python script that implements this scenario, including the tax?[/INST]