An amount of ​$1000 was deposited in a bank at a rate of 6​% compounded quarterly for 5 years. The rate then increased to 10​% and was compounded quarterly for the next 5 years. If no money was​ withdrawn, what was the balance at the end of this​ time?