WorksheetFunction.Ddb Method

Returns the depreciation of an asset for a specified period using the double-declining balance method or some other method you specify.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Ddb ( _
    Arg1 As Double, _
    Arg2 As Double, _
    Arg3 As Double, _
    Arg4 As Double, _
    Arg5 As Object _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim Arg2 As Double
Dim Arg3 As Double
Dim Arg4 As Double
Dim Arg5 As Object
Dim returnValue As Double

returnValue = instance.Ddb(Arg1, Arg2, _
    Arg3, Arg4, Arg5)
double Ddb(
    double Arg1,
    double Arg2,
    double Arg3,
    double Arg4,
    Object Arg5
)

Parameters

  • Arg2
    Type: System.Double

    Salvage - the value at the end of the depreciation (sometimes called the salvage value of the asset). This value can be 0.

  • Arg3
    Type: System.Double

    Life - the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset).

  • Arg4
    Type: System.Double

    Period - the period for which you want to calculate the depreciation. Period must use the same units as life.

  • Arg5
    Type: System.Object

    Factor - the rate at which the balance declines. If factor is omitted, it is assumed to be 2 (the double-declining balance method).

Return Value

Type: System.Double

Remarks

Important

All five arguments must be positive numbers.

The double-declining balance method computes depreciation at an accelerated rate. Depreciation is highest in the first period and decreases in successive periods. Ddb uses the following formula to calculate depreciation for a period:

Min( (cost - total depreciation from prior periods) * (factor/life), (cost - salvage -  total depreciation from prior periods) )

Change factor if you do not want to use the double-declining balance method.

Use the Vdb(Double, Double, Double, Double, Double, Object, Object) function if you want to switch to the straight-line depreciation method when depreciation is greater than the declining balance calculation.

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace