[ https://issues.apache.org/jira/browse/FINERACT-416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16320271#comment-16320271 ]
ASF GitHub Bot commented on FINERACT-416: ----------------------------------------- Github user MexinaD commented on a diff in the pull request: https://github.com/apache/fineract/pull/436#discussion_r160683568 --- Diff: fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/loanschedule/domain/AprCalculator.java --- @@ -41,10 +41,29 @@ public BigDecimal calculateFrom(final PeriodFrequencyType interestPeriodFrequenc case YEARS: defaultAnnualNominalInterestRate = interestRatePerPeriod.multiply(BigDecimal.valueOf(1)); break; + case WHOLE_TERM: + final BigDecimal ratePerPeriod = interestRatePerPeriod.divide(BigDecimal.valueOf(numberOfRepayments*repaymentEvery), 8, RoundingMode.HALF_UP); + + switch (repaymentPeriodFrequencyType) { + case DAYS: + defaultAnnualNominalInterestRate = ratePerPeriod.multiply(BigDecimal.valueOf(365)); --- End diff -- I followed what was already implemented for "DAYS" frequency from the first switch loop. > Interest to be calculated for the whole loan term given > ------------------------------------------------------- > > Key: FINERACT-416 > URL: https://issues.apache.org/jira/browse/FINERACT-416 > Project: Apache Fineract > Issue Type: Improvement > Components: Loan > Reporter: Mexina Daniel > Assignee: Markus Geiss > Priority: Critical > Labels: gsoc2017, p1 > > As for some of the MFI practise here in our country, they specify the > interest for the whole loan term given, i.e their loan product have the > interest for the whole loan term regardless of the frequency of repayment () > To accomplish this in mifos, a user has to do calculation of finding an > interest of a month/year with respect of the loan term of that specific > client. This is a very tiresome work as for a day a user can have apply many > loans and the task of calculation make the work even harder. > I was suggesting improvement in the loan product, to be able to allow the > interest rate of the whole loan term. > Example: > Loan product - Development Loan > Amount - Min: 100,000, Max:1,000,000 > Interest - 20% > Loan term - From 3months to 6months > -- This means the interest given is for any loan term the client will want to > take the loan. -- This message was sent by Atlassian JIRA (v6.4.14#64029)