Write Algorithm in pseudo code to settle the following question:
A bank account starts out with $10,000. Interest is compounded monthly at 6% per year(0.5% per month). Every month, $500 is withdrawn to meet college expenses. After how many years is the account depleted?