Compounded Interest Formula In Python