DDB Function [VBA]

Returns the depreciation of an asset for a specified period using the arithmetic-declining method.

warning

This constant, function or object is enabled with the statement Option VBASupport 1 placed before the executable program code in a module.


Syntax:


DDB(Cost As Double, Salvage As Double, Life as Double, Period as Double, [Factor as Variant])

Return value:

Double

Parameters:

Cost арзиши аслӣ.

Salvage арзиш дар охир.

Life мӯҳлати истифода.

Period дарозии давра.

Factor (ихтиёрӣ) арзише, ки бо ин амортизатсия ҳисоб карда мешавад, аслӣ 2.

Ин функтсияро барои ҳисоб кардани арзиши ибтидоии амортизатсиони истифода баред.

Error codes:

5 Invalid procedure call

Example:


Sub ExampleDDB
 Dim ddb_yr1 As Double
 ddb_yr1 = DDB(75000,1,60,12,2)
 Print ddb_yr1 ' returns 1,721.81 currency units.
End Sub

Please support us!