• Custom User Avatar

    Thank you very much

  • Custom User Avatar

    2/7/2019
    To anyone trying to solve this kata, the comments above are what you need.
    Essentially use "compound interest on a daily basis, with the artificial daily rate p/360".
    This would have been a good kata if this had been adequately explained.

  • Custom User Avatar

    The only way to make the test cases work is to consider compound interest on a daily basis, with the artificial daily rate p/360. No bank works like this in practice, so this kata needs A LOT more description.

  • Custom User Avatar

    You are indeed correct. Thanks for pointing this out!

  • Custom User Avatar

    You are right but if I change the tests now, it will invalidate allmost all C passed solution and I think it will be bad... I will change only the reference solution.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    If p% is the rate for a year the rate for a day is p divided by 36000 since banks consider that there are 360 days in a year.

    This bank doesn't consider compound interest: its definition is the one given above.