This method specifies the depreciation of an asset for a specific time period using the double-declining balance method.
financial.DDB(cost, salvage, life, period, factor)
Double. Result of the DDB calculation.
You must express the life and period parameters in the same units. For example, if you specify life in months, you must also specify period in months. All parameters must be positive numbers.
The following code example shows how to use the DDB method to calculate depreciation for a specified period.
Depreciation / period = ((cost
–salvage) * factor) / life