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:

λΉ„μš©μ€ μžμ‚°μ˜ 초기 λΉ„μš©μ„ κ²°μ •ν•©λ‹ˆλ‹€.

μž”μ‘΄ κ°€μΉ˜λŠ” 수λͺ…이 μ§€λ‚œ μžμ‚°μ˜ κ°€μΉ˜λ₯Ό κ²°μ •ν•©λ‹ˆλ‹€.

κΈ°ν•œμ€ μžμ‚°μ„ μ–Όλ§ˆλ‚˜ 였래 μ‚¬μš©ν•  수 μžˆλŠ”μ§€ μ •μ˜ν•˜λŠ” κ°œμ›”μˆ˜ λ˜λŠ” ν–‡μˆ˜μž…λ‹ˆλ‹€.

기간은 κ³„μ‚°λ˜μ–΄μ§ˆ κ°’μ˜ 기간을 μ§€μ •ν•©λ‹ˆλ‹€.

Factor(μ˜΅μ…˜)은 감가상각이 μ€„μ–΄λ“œλŠ” μΈμžμž…λ‹ˆλ‹€. 값을 μž…λ ₯ν•˜μ§€ μ•ŠμœΌλ©΄ κΈ°λ³Έ μΈμžλŠ” 2μž…λ‹ˆλ‹€.

μ„ ν˜• 감가 상각과 달리 초기 감가 상각 값이 λ†’μ•„μ•Ό ν•˜λŠ” 경우 μ΄λŸ¬ν•œ ν˜•νƒœμ˜ 감각 상각을 μ‚¬μš©ν•©λ‹ˆλ‹€. 감가 상각 값은 각 기간이 μ§€λ‚ μˆ˜λ‘ κ°μ†Œν•˜λ©°, 일반적으둜 ꡬ맀 직후에 κ°’ 손싀이 더 높은 μžμ‚°(예: μ°¨λŸ‰, 컴퓨터 λ“±)에 μ‚¬μš©λ©λ‹ˆλ‹€. 이 계산 μœ ν˜•μ—μ„œλŠ” μž₯λΆ€ 가격이 0에 λ„λ‹¬ν•˜μ§€ μ•ŠλŠ”λ‹€λŠ” 점에 μ£Όμ˜ν•©λ‹ˆλ‹€.

Error codes:

5 잘λͺ»λœ ν”„λ‘œμ‹œμ € ν˜ΈμΆœμž…λ‹ˆλ‹€.

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!