[Suggestion] Add calculation by monthly interest and add months installments
Hey @kfiku, in Brazil loans are calculated by months, both installments and the interest.
Is it possible to adapt as an option installments year and month? Like 18 months installmentYear: 1 and installmentMonth: 6, and then, add an option to use the interest based on monthly or annual.
I really liked the lib, I'll try to figure out this week how to adapt and make a pull request.
I thing i can do it. I will try to add it this week. Or you can do it by your own, but if add test for it.
Hi, it is good explanation of the topic? http://brazilianmarketfordummies.blogspot.com/2017/07/how-to-calculate-interests-in-brazil.html
And how People pay loan: per month with sum of interests from this table: https://1.bp.blogspot.com/-fO1tSrIDXHU/WVwH1a0wMyI/AAAAAAAAA_0/cENadzhjlvIZMJraJKGq2znqanoTuyMGgCLcBGAs/s1600/PerCDI%2Bnumeric%2Bexample%2B-%2Btable.jpg
So it should be also shown in returning value of new Lona in every installment?
And one more think. How to provide this percents of CDI per day: it should be predefined per every day (so for example 21*12 with one year loan)?
thanks
@kfiku sorry the delay, but yes, it's right the information.
I put some extra logic at the platform that I work, but I'd like to check your implementation.
@rafaell-lycan so it should be count with constant interest rate, or it should be provided by every day or randomize? In lib that you send me its using constant interest rate.
@kfiku we implemented as a constant.