DDB funktsioon [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.


SĂŒntaks:


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

TagastusvÀÀrtus:

Double

Parameetrid:

Maksumus on pÔhivahendi soetusmaksumus.

Salvage fixes the value of an asset at the end of its life.

Life is the number of periods (for example, years or months) defining how long the asset is to be used.

Period states the period for which the value is to be calculated.

Factor (optional) is the factor by which depreciation decreases. If a value is not entered, the default is factor 2.

Seda amortisatsiooni vormi kasutatakse, kui vajatakse suuremat amortisatsiooni pÔhivahendi eluea alguses. Kulum muutub iga perioodiga vÀiksemaks ja see juhtub tavaliselt esemetega, mis kaotavad oma vÀÀrtusest suure osa kohe pÀrast ostmist (sÔidukid, arvutid). Pane tÀhele, et sellise arvutusviisi juures ei muutu pÔhivahendi jÀÀkvÀÀrtus kunagi nulliks.

Veakoodid:

5 Vigane protseduuri vÀljakutse

NĂ€ide:


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

Palun toeta meid!