UnUniFi / chain

GNU General Public License v3.0
33 stars 14 forks source link

fix: Loan calculation #638

Closed Senna46 closed 1 year ago

Senna46 commented 1 year ago

Change to continuous compounding Interest to eliminate extra code and bugs

Calculation of Repayment Amount:
Principal * exp^(Interest Rate * Borrowing Period/1 year)

Calculation of Interest Only:
Principal * (exp^(Interest Rate * Borrowing Period/1 year) - 1)