Returns the depreciation of an asset for a specified period using the fixed-declining balance method.
Name | Type | Description |
arg1 | number | Is the initial cost of the asset. |
arg2 | number | Is the salvage value at the end of the life of the asset. |
arg3 | number | Is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset). |
arg4 | number | Is the period for which you want to calculate the depreciation. Period must use the same units as Life. |
arg5 | number | Is the number of months in the first year. If month is omitted, it is assumed to be 12. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.DB(3500, 500, 5, 1, 10)); builder.SaveFile("xlsx", "DB.xlsx"); builder.CloseFile();