Evaluates the depreciation of an asset for any given period using the variable-declining balance method.
Synopsis
#include<imsl.h>
float imsl_f_depreciation_vdb (float cost, float salvage, int life, int start, int end, float factor, int sln)
The type double function is imsl_d_depreciation_vdb.
Required Arguments
floatcost (Input) Initial value of the asset.
floatsalvage (Input) The value of an asset at the end of its depreciation period.
intlife (Input) Number of periods over which the asset is being depreciated.
intstart (Input) Starting period in the calculation. start cannot be less than 1; or greater than end.
intend (Input) Final period for the calculation. end cannot be greater than life.
floatfactor (Input) Rate at which the balance declines. factor must be positive.
intsln (Input) If equal to zero, do not switch to straight-line depreciation even when the depreciation is greater than the declining balance calculation.
Return Value
The depreciation of an asset for any given period, including partial periods, using the variable-declining balance method. If no result can be computed, NaN is returned.
Description
Function imsl_f_depreciation_vdb computes the depreciation of an asset for any given period using the variable-declining balance method using the following:
If sln =0
If sln≠ 0
where ddbi is computed from imsl_f_depreciation_ddb for the i-th period. k =the first period where straight line depreciation is greater than the depreciation using the double-declining balance method .
Example
In this example, imsl_f_depreciation_vdb computes the depreciation of an asset between the 10th and 15th year, which costs $25,000 initially, lasts 15 years and has a salvage value of $5,000.