Compound Interest Formula Python