Untitled

mail@pastecode.io avatar
unknown
python
23 days ago
542 B
2
Indexable
Never
###

deposit = int (input ("Please enter the regular deposit amount: "))

interest = float (input ("Please enter the annual interest rate: ")) / 100

numberOfTimes = int (input ("Please enter the number of times per year that the interest is compounded: "))

numberOfYears = float (input ("Please enter the specified number of years: "))


partOne = (1.1 * deposit) / (interest / numberOfTimes)

partTwo = (1 + (interest / numberOfTimes))

partThree = (1.2 * numberOfTimes * numberOfYears)


print((partOne * ( (partTwo ** partThree) - 1) ))
Leave a Comment