• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
Odd Avatar
Name:Unknown
Clan:Holisticon
Member Since:Apr 2017
Last Seen:Apr 2025
Profiles:
    Following:10
    Followers:10
    Allies:10
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (15)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • dfhwze
      • commented on "Calculate daily accurate interest for a bank account" kata
      • 3 months ago

      Very tedious kata

    • Custom User Avatar
      • Odd
      • commented on ""Calculate daily accurate interest for a bank account" Python Translation"
      • 3 months ago

      Hello, original author here. Thank you for investing your time and cleaning up the Kata.

      The changes look good to me.

    • Custom User Avatar
      • Odd
      • commented on "Calculate daily accurate interest for a bank account" kata
      • 3 months ago

      Hello, original author here. Thank you for investing your time and cleaning up the Kata.

      The changes look good to me.

    • Custom User Avatar
      • 4500zenja1
      • resolved an issue on "Calculate daily accurate interest for a bank account" kata
      • 3 months ago

      Since the author, Odd, is inactive since October 2020, I've decided to fix this kata by myself and, after publishing, merged the fix fork above your comment; it should resolve all the issue points you've written about.

      Feel free to reraise if I've missed something, for now closing this issue as resolved~

    • Custom User Avatar
      • 4500zenja1
      • commented on "Calculate daily accurate interest for a bank account" kata
      • 3 months ago

      done

    • Custom User Avatar
      • 4500zenja1
      • resolved a suggestion on "Calculate daily accurate interest for a bank account" kata
      • 3 months ago
    • Custom User Avatar
      • 4500zenja1
      • created a suggestion for "Calculate daily accurate interest for a bank account" kata
      • 3 months ago

      A fork which should fix all issues below + make the testing code up-to-date with the current katas, full info in the fork comments (Katafix helped)

    • Custom User Avatar
      • Voile
      • created an issue for "Calculate daily accurate interest for a bank account" kata
      • 2 years ago

      Fixed tests are written incorrectly: user function should be called per test block, and not in batch in advance, because user logs will cluster together before any test blocks, which cannot be correlated to the specific test assertion (and is pretty unreadable too).

      Also, tests are not displaying expected value (0 is not the expected balance.), which is unacceptable.

      ALSO, failure assertion message for the random tests is wrong: every one of them displays Transactions: [('2015-01-01 10:12:13', 123.45), ('2015-01-01 15:12:13', 123.45), ('2015-02-07 18:00:00', 123.45)] but this is the first fixed test, not the actual transactions being tested.

    • Custom User Avatar
      • akar-0
      • commented on "Calculate daily accurate interest for a bank account" kata
      • 5 years ago

      The third parameter should be renamed to 'initial_balance'.

    • Custom User Avatar
      • Odd
      • resolved an issue on "Calculate daily accurate interest for a bank account" kata
      • 6 years ago

      I added random tests now, thanks for your help.

    • Custom User Avatar
      • ZED.CWT
      • commented on "Calculate daily accurate interest for a bank account" kata
      • 6 years ago

      It's common to put the reference solution in the complete test.
      If you are considering about anti-cheat, firstly, you may have to think of what to prevent.

    • Custom User Avatar
      • Odd
      • commented on "Calculate daily accurate interest for a bank account" kata
      • 6 years ago

      You are right, I wanted to add some random tests but haven't yet.
      Is there a better way to access my solution to use it in the tests to calculate the result for the random input than copying it to the test code under a random name?

    • Custom User Avatar
      • ZED.CWT
      • created an issue for "Calculate daily accurate interest for a bank account" kata
      • 6 years ago

      Needs Random Tests

    • Custom User Avatar
      • Odd
      • resolved an issue on "Calculate daily accurate interest for a bank account" kata
      • 6 years ago

      If the balance is negative, let's say -100 for 10 days and interest per year (assuming 365 for this reply) is 0.01 or 1%, then you would calculate -100 * 10 days * (0.01 / 365) = -0,027397260273973
      So, yes it would be deducted, you would have to pay interest to the bank for that period.

    • Custom User Avatar
      • Voile
      • created an issue for "Calculate daily accurate interest for a bank account" kata
      • 6 years ago

      If the balance becomes negative over a period of the year, the same interest rate is still used (no penalty is applied)

      So should interest rate stay the same or be deducted?

    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...