IFinance.Vdb

Syntax

Vdb(

Cost: Double;

Salvage: Double;

Life: Double;

StartPeriod: Double;

EndPeriod: Double;

Factor: Double;

NoSwitch: Boolean): Double;

Parameters

Parameters Description Constraints
Cost Initial asset price. Cannot be negative.
Salvage Value of an asset at the end of the depreciation period. Must belong to the [0;Cost] interval.
Life Number of asset depreciation periods Must be positive.
StartPeriod The first period, for which depreciation should be calculated. Must be in the [1;Life] interval.
EndPeriod The last period, for which depreciation should be calculated. Must be in the [StartPeriod;PeriodCount] interval.
Factor Interest rate of a decreasing remainder. Must be positive.
NoSwitch Logical value, defining, if linear depreciation should be used in case depreciation exceeds the value, calculated using the decreasing remainder method.  

Description

The Vdb method returns an asset's depreciation for any selected period, including partial periods, using the double remainder reduction method or another specified method.

Comments

If the Factor parameter is equal to 2, depreciation is calculated by the double declining method:

Where:

Ddb(Cost,Salvage,Life,Period,Factor) - value of asset depreciation for the set period.

Example

To execute the example, add a link to the MathFin system assembly.

Sub UserProc;
Var
    r: Double;
Begin
    r := Finance.
Vdb(500010012132True);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the asset depreciation value equal to 1273.15.

See also:

IFinance