A certain bank offers an interest rate of 12.5% on a 1 year fixed deposit and the interest is compounded at the end of the year. Suppose you invest $P for one year, and at the end of the year the investment is worth investment $9000. Calculate P.