
Diamond Control Suite 3.0  
PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object diamondedge.util.Financial
public class Financial
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 fixeddeclining 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 doubledeclining 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 straightline depreciation of an asset for a single period. 
static double 
syd(double cost,
double salvage,
double life,
double period)
Returns a Double specifying the sumofyears' 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 

public Financial()
Method Detail 

public static double sln(double cost, double salvage, double life)
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.public static double syd(double cost, double salvage, double life, double period)
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.public static double ddb(double cost, double salvage, double life, double period, double factor)
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 (doubledeclining method) is assumed.public static double db(double cost, double salvage, double life, int period, int month)
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.public static double pmt(double rate, double nper, double pv, double fv, int due)
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 fouryear 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.public static double pv(double rate, double nper, double pmt, double fv, int due)
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 fouryear 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.public static double fv(double rate, double nper, double pmt, double pv, int due)
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 fouryear 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.public static double nper(double rate, double pmt, double pv, double fv, int due)
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  
PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 