Hi Adam, all, A quick update on this thread, since I started it back in October.
The fix for cumulative loans (FINERACT-3049 <https://issues.apache.org/jira/browse/FINERACT-3049>) was merged on Nov 28 in (#6827 <https://github.com/apache/fineract/pull/6827>). With DAILY interest and ACTUAL days in a year, they now use 366 days in a leap year, the same as progressive loans. Thanks Adam and galovics for the reviews, I learned a lot from them. One thing worth knowing for anyone running this in production: nothing changes on upgrade. A loan only changes if its schedule gets regenerated and the period has a leap-year day, and then the interest goes down slightly. The details are in the release note on the ticket, which still shows "In Progress" in JIRA, so Adam, could you resolve it when you have a moment? While working on that, I found that flat loans with the same settings still use 365 days. That's FINERACT-3194 <https://issues.apache.org/jira/browse/FINERACT-3194>, and the PR is now up: #7100 <https://github.com/apache/fineract/pull/7100> For example, 10,000 at 12% from 15 Dec 2023 to 15 Dec 2024 goes from 1203.29 to 1200.14. Years without a leap day give the same result as before. CI is green, so reviews are very welcome. There's one thing left that I'd like your opinion on before I write any code (FINERACT-3201 <https://issues.apache.org/jira/browse/FINERACT-3201>). When a product uses a per-day rate, it's first turned into an annual rate with 365 days, and then divided by 366 in a leap year. So 0.1% per day charges 309.15 instead of 310.00 for 31 days on 10,000. My feeling is that a per-day rate should just be used as it is when days in year is ACTUAL, since DAYS_360 and DAYS_365 loans already work that way. But it changes behaviour, so I'd rather agree on it here first. Sanvi asked the same thing on the ticket. What do you think? Thanks, Senesh Perera GitHub: https://github.com/ImalkaPerera >
