org.jscience.economics.money
Class MoneyUtils

java.lang.Object
  extended by org.jscience.economics.money.MoneyUtils

public final class MoneyUtils
extends java.lang.Object

A class prividing useful methods to compute interest rates...


Constructor Summary
MoneyUtils()
           
 
Method Summary
 double getComplexInterestValueAtt(double initialDeposit, double interestRate, int compoundsPerYear, int numberOfYears)
          DOCUMENT ME!
 double getComplexLoanBalance(double initialAmountBorrowed, double annualPercentageRate, int paymentsPerYear, int numberOfYears, double amountPaidPerPayment)
          DOCUMENT ME!
 double getContinuousInterestValueAtt(double initialDeposit, double interestRate, int numberOfYears)
          DOCUMENT ME!
 double getSimpleInterestPeriods(double initialDeposit, double resultDeposit, double interestRate)
          DOCUMENT ME!
 double getSimpleInterestRateAtt(double initialDeposit, double resultDeposit, int numberOfPeriods)
          DOCUMENT ME!
 double getSimpleInterestValueAtt(double initialDeposit, double interestRate, int numberOfPeriods)
          DOCUMENT ME!
 double getSimpleInvestmentValueAtt(double resultDeposit, double interestRate, int numberOfPeriods)
          DOCUMENT ME!
 double getSimpleLoanBorrowedValueAtt(double paymentPerPeriod, double interestRate, int numberOfPeriods)
          DOCUMENT ME!
 double getSimpleLoanPaymentValueAtt(double borrowedAmount, double interestRate, int numberOfPeriods)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoneyUtils

public MoneyUtils()
Method Detail

getSimpleInterestValueAtt

public double getSimpleInterestValueAtt(double initialDeposit,
                                        double interestRate,
                                        int numberOfPeriods)
DOCUMENT ME!

Parameters:
initialDeposit - DOCUMENT ME!
interestRate - DOCUMENT ME!
numberOfPeriods - DOCUMENT ME!
Returns:
DOCUMENT ME!

getSimpleInvestmentValueAtt

public double getSimpleInvestmentValueAtt(double resultDeposit,
                                          double interestRate,
                                          int numberOfPeriods)
DOCUMENT ME!

Parameters:
resultDeposit - DOCUMENT ME!
interestRate - DOCUMENT ME!
numberOfPeriods - DOCUMENT ME!
Returns:
DOCUMENT ME!

getSimpleInterestRateAtt

public double getSimpleInterestRateAtt(double initialDeposit,
                                       double resultDeposit,
                                       int numberOfPeriods)
DOCUMENT ME!

Parameters:
initialDeposit - DOCUMENT ME!
resultDeposit - DOCUMENT ME!
numberOfPeriods - DOCUMENT ME!
Returns:
DOCUMENT ME!

getSimpleInterestPeriods

public double getSimpleInterestPeriods(double initialDeposit,
                                       double resultDeposit,
                                       double interestRate)
DOCUMENT ME!

Parameters:
initialDeposit - DOCUMENT ME!
resultDeposit - DOCUMENT ME!
interestRate - DOCUMENT ME!
Returns:
DOCUMENT ME!

getComplexInterestValueAtt

public double getComplexInterestValueAtt(double initialDeposit,
                                         double interestRate,
                                         int compoundsPerYear,
                                         int numberOfYears)
DOCUMENT ME!

Parameters:
initialDeposit - DOCUMENT ME!
interestRate - DOCUMENT ME!
compoundsPerYear - DOCUMENT ME!
numberOfYears - DOCUMENT ME!
Returns:
DOCUMENT ME!

getContinuousInterestValueAtt

public double getContinuousInterestValueAtt(double initialDeposit,
                                            double interestRate,
                                            int numberOfYears)
DOCUMENT ME!

Parameters:
initialDeposit - DOCUMENT ME!
interestRate - DOCUMENT ME!
numberOfYears - DOCUMENT ME!
Returns:
DOCUMENT ME!

getSimpleLoanBorrowedValueAtt

public double getSimpleLoanBorrowedValueAtt(double paymentPerPeriod,
                                            double interestRate,
                                            int numberOfPeriods)
DOCUMENT ME!

Parameters:
paymentPerPeriod - DOCUMENT ME!
interestRate - DOCUMENT ME!
numberOfPeriods - DOCUMENT ME!
Returns:
DOCUMENT ME!

getSimpleLoanPaymentValueAtt

public double getSimpleLoanPaymentValueAtt(double borrowedAmount,
                                           double interestRate,
                                           int numberOfPeriods)
DOCUMENT ME!

Parameters:
borrowedAmount - DOCUMENT ME!
interestRate - DOCUMENT ME!
numberOfPeriods - DOCUMENT ME!
Returns:
DOCUMENT ME!

getComplexLoanBalance

public double getComplexLoanBalance(double initialAmountBorrowed,
                                    double annualPercentageRate,
                                    int paymentsPerYear,
                                    int numberOfYears,
                                    double amountPaidPerPayment)
DOCUMENT ME!

Parameters:
initialAmountBorrowed - DOCUMENT ME!
annualPercentageRate - DOCUMENT ME!
paymentsPerYear - DOCUMENT ME!
numberOfYears - DOCUMENT ME!
amountPaidPerPayment - DOCUMENT ME!
Returns:
DOCUMENT ME!