Formula 1.0.0

hirondelle.formula.function.builtin
Class LoanPayment

Object
  extended by hirondelle.formula.function.builtin.LoanPayment
All Implemented Interfaces:
Function

public final class LoanPayment
extends Object
implements Function

pmt(principal,interest,months): monthly payment needed to pay back a loan or mortgage.


Constructor Summary
LoanPayment()
           
 
Method Summary
 Decimal calculate(Decimal... aArgs)
          Monthly payment.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoanPayment

public LoanPayment()
Method Detail

calculate

public Decimal calculate(Decimal... aArgs)
Monthly payment. No rounding of the result is performed.

This method takes 3 parameters, in this order:

Example: this loan of 100 has an annual interest rate of 5%, and is paid back over 2 years (24 months):

Then

pmt(100, 0.05, 24) = 4.38713897340684378120

Specified by:
calculate in interface Function
Parameters:
aArgs - 0 or more arguments to the function.

Formula 1.0.0

Copyright Hirondelle Systems. Published January 31, 2013