Problem 35

Back to Problem Solutions forum

Sergey Afonin     2016-02-20 16:07:43

the function of calculating the contribution period of validity math.log(R/S, 1+P/100)

R=25 S=375 P=1

We get results - 272.1567997148549

Round upward - 273

But the right answer shows 274

Why?

I tried several times. Continuing from the entire set of 1 - 3 variants wrong for the same reason

Quandray     2016-02-20 16:35:48
User avatar

For S=25 R=375 P=1 my code agrees with the answer 274.

At the end of each year are you rounding down to whole cents?

Sergey Afonin     2016-02-20 16:56:01

No. Once considered by the formula. I'll try. Thank you!

Please login and solve 5 problems to be able to post at forum