how do i get it to work?

so waht im trying to do is create a code that takes user, initail investment value, intrest rate, how long the investment is active, and how long it needs to go, then it gives how much the investment is worth each month. but it isnt working, ive looked at a example that i was given of something like this and took some of its code, but it still isnt working

You are viewing a single comment. View All

I helped you with a couple bugs. Variables m and l needed to be integers. Variable r was clarified to be % anually. The output function needed to use the variable t for each month to calculate properly.