Hi Adam, Thanks for the reply.
FINERACT-3049: the open PR was #7100 (FINERACT-3194), which I had linked to 3049 by mistake. I removed the link, so 3049 now only has the merged #6827 and can be resolved. FINERACT-3201: thanks, that is clear. I will: 1. Keep annual_nominal_interest_rate as it is and fix both engines in one PR. With DAYS interest frequency and ACTUAL days in year, the daily rate will come from nominal_interest_rate_per_period. 2. Check every path that can change the rate on a running loan (reschedule with a new rate, floating rates, interest rate changes on progressive loans) and write down which rate applies after each. 3. Not migrate existing loans. The release note, the PR description and the commit message will state clearly that interest goes up for existing loans, including progressive loans, when their schedule is regenerated. 4. Leave WHOLE_TERM as a separate decision and keep the EMI nominal. I will start once #7100 is merged, as both change LoanApplicationTerms. On #7100 (FINERACT-3194): it splits flat DAILY ACTUAL interest by year, which would also charge a rate entered per day as annual / 366 on leap-year days (0.0997% instead of 0.1%). Following your rule above, I will exclude rates entered per day from the split, so flat per-day loans keep the rate as entered and do not change twice. I will update the PR and its description. Regards, Senesh Perera GitHub: https://github.com/ImalkaPerera On Mon, Nov 30, 2026 at 4:45 PM Ádám Sághy <[email protected]> wrote: > Hi Senesh, all, > > Thanks for the update > > FINERACT-3049: Since there is an open PR with this ticket number, it > cannot be resolved > > FINERACT-3201: I agree. When days in year is ACTUAL, a per-day rate should > be charged as it was entered. If someone sets 0.1% per day, they expect > 0.1% on 29 Feb like on any other day, and that is what DAYS_360 and > DAYS_365 loans already get. The 365 in AprCalculator comes from having to > store a single annual rate, not from a decision anyone made about leap > years. > > What I'd like the change to cover: > > 1. > > Keep annual_nominal_interest_rate as it is today (rate x 365). Product > create and update have no date, and the field is used for display, reports > and APR. The fix belongs in the engines: with DAYS interest frequency and > ACTUAL days in year, take the daily rate from > nominal_interest_rate_per_period instead of annual rate / days in year. > Please do both engines in the same PR, so they don't drift apart again. > 2. > > Rate changes after disbursement. Please check every path that can > change the rate on a running loan (reschedule with a new rate, floating > rates, interest rate changes on progressive loans) and write down which > rate applies after each of them. A loan should not silently mix a fixed > daily rate with annual / 366. > 3. > > Upgrade: same rule as 3049, no migration, and a loan only changes when > its schedule is regenerated. This time the interest goes up (309.15 to > 310.00 in your example), so the release note should say that clearly. > 4. > > WHOLE_TERM stays a separate decision, as you suggested. EMI stays > nominal, as in 3049 and 3194. > > Since this changes the behaviour of existing progressive loans, lets > highlight in the PR description and commit message. > > Thanks to Sanvi as well for raising the same question on the ticket. > > Regards, > > Adam S > > On Nov 30, 2026, at 6:34 AM, Senesh Perera <[email protected]> > wrote: > > 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 > >> >
