Diamond Control Suite 3.0

diamondedge.util
Class Financial

java.lang.Object
  extended by diamondedge.util.Financial

public class Financial
extends Object


Constructor Summary
Financial()
           
 
Method Summary
static double db(double cost, double salvage, double life, int period, int month)
          Returns the depreciation of an asset for a specified period using the fixed-declining balance method.
static double ddb(double cost, double salvage, double life, double period, double factor)
          Returns a Double specifying the depreciation of an asset for a specific time period using the double-declining balance method or some other method you specify.
static double fv(double rate, double nper, double pmt, double pv, int due)
          Returns a Double specifying the future value of an annuity based on periodic, fixed payments and a fixed interest rate.
static double nper(double rate, double pmt, double pv, double fv, int due)
          Returns a Double specifying the number of periods for an annuity based on periodic, fixed payments and a fixed interest rate.
static double pmt(double rate, double nper, double pv, double fv, int due)
          Returns a Double specifying the payment for an annuity based on periodic, fixed payments and a fixed interest rate.
static double pv(double rate, double nper, double pmt, double fv, int due)
          Returns a Double specifying the present value of an annuity based on periodic, fixed payments to be paid in the future and a fixed interest rate.
static double sln(double cost, double salvage, double life)
          Returns a Double specifying the straight-line depreciation of an asset for a single period.
static double syd(double cost, double salvage, double life, double period)
          Returns a Double specifying the sum-of-years' digits depreciation of an asset for a specified period.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Financial

public Financial()
Method Detail

sln

public static double sln(double cost,
                         double salvage,
                         double life)
Returns a Double specifying the straight-line depreciation of an asset for a single period. The depreciation period must be expressed in the same unit as the life argument. All arguments must be positive numbers.

Parameters:
cost - Double specifying initial cost of the asset.
salvage - Double specifying value of the asset at the end of its useful life.
life - Double specifying length of the useful life of the asset.

syd

public static double syd(double cost,
                         double salvage,
                         double life,
                         double period)
Returns a Double specifying the sum-of-years' digits depreciation of an asset for a specified period. The life and period arguments must be expressed in the same units. For example, if life is given in months, period must also be given in months. All arguments must be positive numbers.

Parameters:
cost - Double specifying initial cost of the asset.
salvage - Double specifying value of the asset at the end of its useful life.
life - Double specifying length of the useful life of the asset.
period - Double specifying period for which asset depreciation is calculated.

ddb

public static double ddb(double cost,
                         double salvage,
                         double life,
                         double period,
                         double factor)
Returns a Double specifying the depreciation of an asset for a specific time period using the double-declining balance method or some other method you specify. The double-declining balance method computes depreciation at an accelerated rate. Depreciation is highest in the first period and decreases in successive periods. The life and period arguments must be expressed in the same units. For example, if life is given in months, period must also be given in months. All arguments must be positive numbers.

Parameters:
cost - Double specifying initial cost of the asset.
salvage - Double specifying value of the asset at the end of its useful life.
life - Double specifying length of useful life of the asset.
period - Double specifying period for which asset depreciation is calculated.
factor - double specifying rate at which the balance declines. If <= 0, 2 (double-declining method) is assumed.

db

public static double db(double cost,
                        double salvage,
                        double life,
                        int period,
                        int month)
Returns the depreciation of an asset for a specified period using the fixed-declining balance method.

Parameters:
cost - is the initial cost of the asset.
salvage - is the value at the end of the depreciation (sometimes called the salvage value of the asset).
life - is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset).
period - is the period for which you want to calculate the depreciation. Period must use the same units as life.
month - is the number of months in the first year. If month is omitted, it is assumed to be 12.

pmt

public static double pmt(double rate,
                         double nper,
                         double pv,
                         double fv,
                         int due)
Returns a Double specifying the payment for an annuity based on periodic, fixed payments and a fixed interest rate. An annuity is a series of fixed cash payments made over a period of time. An annuity can be a loan (such as a home mortgage) or an investment (such as a monthly savings plan). The rate and nper arguments must be calculated using payment periods expressed in the same units. For example, if rate is calculated using months, nper must also be calculated using months. For all arguments, cash paid out (such as deposits to savings) is represented by negative numbers; cash received (such as dividend checks) is represented by positive numbers.

Parameters:
rate - Double specifying interest rate per period. For example, if you get a car loan at an annual percentage rate (APR) of 10 percent and make monthly payments, the rate per period is 0.1/12, or 0.0083.
nper - Integer specifying total number of payment periods in the annuity. For example, if you make monthly payments on a four-year car loan, your loan has a total of 4 * 12 (or 48) payment periods.
pv - Double specifying present value (or lump sum) that a series of payments to be paid in the future is worth now. For example, when you borrow money to buy a car, the loan amount is the present value to the lender of the monthly car payments you will make.
fv - double specifying future value or cash balance you want after you've made the final payment. For example, the future value of a loan is $0 because that's its value after the final payment. However, if you want to save $50,000 over 18 years for your child's education, then $50,000 is the future value. 0 is default value.
due - int specifying when payments are due. Use 0 if payments are due at the end of the payment period, or use 1 if payments are due at the beginning of the period. 0 is default value.

pv

public static double pv(double rate,
                        double nper,
                        double pmt,
                        double fv,
                        int due)
Returns a Double specifying the present value of an annuity based on periodic, fixed payments to be paid in the future and a fixed interest rate. An annuity is a series of fixed cash payments made over a period of time. An annuity can be a loan (such as a home mortgage) or an investment (such as a monthly savings plan). The rate and nper arguments must be calculated using payment periods expressed in the same units. For example, if rate is calculated using months, nper must also be calculated using months. For all arguments, cash paid out (such as deposits to savings) is represented by negative numbers; cash received (such as dividend checks) is represented by positive numbers.

Parameters:
rate - Double specifying interest rate per period. For example, if you get a car loan at an annual percentage rate (APR) of 10 percent and make monthly payments, the rate per period is 0.1/12, or 0.0083.
nper - Integer specifying total number of payment periods in the annuity. For example, if you make monthly payments on a four-year car loan, your loan has a total of 4 * 12 (or 48) payment periods.
pmt - Double specifying payment to be made each period. Payments usually contain principal and interest that doesn't change over the life of the annuity.
fv - double specifying future value or cash balance you want after you've made the final payment. For example, the future value of a loan is $0 because that's its value after the final payment. However, if you want to save $50,000 over 18 years for your child's education, then $50,000 is the future value. 0 is default value.
due - int specifying when payments are due. Use 0 if payments are due at the end of the payment period, or use 1 if payments are due at the beginning of the period. 0 is default value.

fv

public static double fv(double rate,
                        double nper,
                        double pmt,
                        double pv,
                        int due)
Returns a Double specifying the future value of an annuity based on periodic, fixed payments and a fixed interest rate. An annuity is a series of fixed cash payments made over a period of time. An annuity can be a loan (such as a home mortgage) or an investment (such as a monthly savings plan). The rate and nper arguments must be calculated using payment periods expressed in the same units. For example, if rate is calculated using months, nper must also be calculated using months. For all arguments, cash paid out (such as deposits to savings) is represented by negative numbers; cash received (such as dividend checks) is represented by positive numbers.

Parameters:
rate - Double specifying interest rate per period. For example, if you get a car loan at an annual percentage rate (APR) of 10 percent and make monthly payments, the rate per period is 0.1/12, or 0.0083.
nper - Integer specifying total number of payment periods in the annuity. For example, if you make monthly payments on a four-year car loan, your loan has a total of 4 * 12 (or 48) payment periods.
pmt - Double specifying payment to be made each period. Payments usually contain principal and interest that doesn't change over the life of the annuity.
pv - double specifying present value (or lump sum) of a series of future payments. For example, when you borrow money to buy a car, the loan amount is the present value to the lender of the monthly car payments you will make. 0 is default value.
due - int specifying when payments are due. Use 0 if payments are due at the end of the payment period, or use 1 if payments are due at the beginning of the period. 0 is default value.

nper

public static double nper(double rate,
                          double pmt,
                          double pv,
                          double fv,
                          int due)
Returns a Double specifying the number of periods for an annuity based on periodic, fixed payments and a fixed interest rate. An annuity is a series of fixed cash payments made over a period of time. An annuity can be a loan (such as a home mortgage) or an investment (such as a monthly savings plan). For all arguments, cash paid out (such as deposits to savings) is represented by negative numbers; cash received (such as dividend checks) is represented by positive numbers.

Parameters:
rate - Double specifying interest rate per period. For example, if you get a car loan at an annual percentage rate (APR) of 10 percent and make monthly payments, the rate per period is 0.1/12, or 0.0083.
pmt - Double specifying payment to be made each period. Payments usually contain principal and interest that doesn't change over the life of the annuity.
pv - Double specifying present value, or value today, of a series of future payments or receipts. For example, when you borrow money to buy a car, the loan amount is the present value to the lender of the monthly car payments you will make.
fv - double specifying future value or cash balance you want after you've made the final payment. For example, the future value of a loan is $0 because that's its value after the final payment. However, if you want to save $50,000 over 18 years for your child's education, then $50,000 is the future value. 0 is default value.
due - int specifying when payments are due. Use 0 if payments are due at the end of the payment period, or use 1 if payments are due at the beginning of the period. 0 is default value.

Diamond Control Suite 3.0

Diamond Edge and Diamond Control Suite are trademarks or registered trademarks of Diamond Edge, Inc. Copyright 1999-2005 Diamond Edge, Inc. All Rights Reserved.