VDB

function VDB(
  arg1: number = null,
  arg2: number = null,
  arg3: number = null,
  arg4: number = null,
  arg5: number = null,
  arg6: number = null,
  arg7: boolean = null,
): number | string | boolean

Description

Returns the depreciation of an asset for any period you specify, including partial periods, using the double-declining balance method or some other method you specify.

Parameters

arg1numberdefault: null

Is the initial cost of the asset.

arg2numberdefault: null

Is the salvage value at the end of the life of the asset.

arg3numberdefault: null

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

arg4numberdefault: null

Is the starting period for which you want to calculate the depreciation, in the same units as Life.

arg5numberdefault: null

Is the ending period for which you want to calculate the depreciation, in the same units as Life.

arg6numberdefault: null

Is the rate at which the balance declines, 2 (double-declining balance) if omitted.

arg7booleandefault: null

Switch to straight-line depreciation when depreciation is greater than the declining balance = FALSE or omitted; do not switch = TRUE.

Returns

number | string | boolean

Try It

var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.VDB(3500, 500, 5, 1, 3, 2, false));

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).