contents.gifprev1.gifnext1.gif

VDB() - Variable declining balance

Calculates the depreciation of an asset using the DDB method, switching to SLN method when SLN is greater than DDB.

Returns

Double value if successful. If an error occurs, this function returns a zero.

Arguments

Type
Field
Description
double
dCost
Cost of asset
double
dSalvage
Salvage value of asset
double
dLife
Life expectancy of asset
integer
iPeriod
Depreciation period
double
dFactor
Depreciation factor
16 bit DLL declarations

PowerBuilder Function declaration

function double VDB(double dCost, double dSalvage, double dLife, int iPeriod, double dFactor) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function VDB lib "IFL16" (ByVal dCost As Double, ByVal dSalvage As double, ByVal dLife As Double, ByVal iPeriod As Integer, ByVal dFactor as Double) As Double

C/C++ Synopsis

#include "function.h"

double VDB(double dCost, double dSalvage, double dLife, int iPeriod, double dFactor)

32 bit DLL declarations

PowerBuilder Function declaration

function double VDB(double dCost, double dSalvage, double dLife, int iPeriod, double dFactor) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function VDB lib "IFL32" (ByVal dCost As Double, ByVal dSalvage As double, ByVal dLife As Double, ByVal iPeriod As Integer, ByVal dFactor as Double) As Double

C/C++ Synopsis

#include "function.h"

double VDB(double dCost, double dSalvage, double dLife, short sPeriod, double dFactor)

Example:

dCost
=
10,000

dSalvage
=
600

dLife
=
10

iPeriod
=
5

dFactor
=
1.5
(150%)
Result: $ 783.01