PHP5 required. Calcs can be used with BCMath.
It is used to generate repayment loan tables of 4 types of loan:
- Equal payment (French method)
- Constant amortization (Equal principal payment method)
- Interest only (American method)
- Single repayment
Check Example.php to see an example of usage
IMPORTANT: Errors are handled with exceptions. They can be either one of the following ones:
- Periods can't be 0.
- Missing parameters.
- generateSingleRepayment()
- generateEqualPayment()
- generateConstantAmortization()
- generateInterestOnly()
All of these functions will return an array. Each element will contain an Annuity object, that has the following properties:
- amount (float - amount of the payment)
- interest (float - interest paid in the period)
- amortization (float - amount of money amortized in the period)
- amortized (float - amount of money amortized since the life of the loan)
- remaining (float - pending money of the loan)
Check http://github.com/marcosgdf/LoanSchedule or contact me at [email protected]