GoyalRocks007 opened a new pull request, #3791:
URL: https://github.com/apache/fineract/pull/3791

   Created a functionality to calculate maturity amount. I have tried to follow 
all the best practices in my knowledge. Please let me know if any changes need 
to be done. Also, please feel free to check business logic to calculate the 
amount and the validation operations on the input, because I used my own 
knowledge and some research to write them.
   
   **Current Business logic to calculate the interest:**
   
   Maturity amount = P* ((1+ r/n) ^nt))
   
   Where -
   
   A  denotes the future valuation of the investment made
   
   P  denotes the Principal amount
   
   r   denotes the interest rate
   
   n  denotes the number of times interest gets compounded per period
   
   t   denotes the time period the money was invested
   
   **Current Applied validations on input data:**
   
   1) All input fields (Principal Amount, annualInterestRate, tenureInMonths, 
interestPostingPeriodInMonths, interestCompoundingPeriodInMonths) must be 
greater than 0 and cannot be null.
   2) 0 < interestCompoundingPeriodInMonths <= 12
   
   
   Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to