Return the depreciation of an asset for a specified period using different methods. SLN returns the straight-line depreciation DB uses the fixed-declining balance method and SYD returns the sum-of-years' digits depreciation.

SLN(cost, salvage, life)
DB(cost, salvage, life, period = 1:life)
SYD(cost, salvage, life, period = 1:life)

Arguments

cost

initial cost of the asset.

salvage

value at the end of the depreciation (sometimes called the salvage value of the asset).

life

number of periods over which the asset is depreciated (sometimes called the useful life of the asset).

period

period for which you want to calculate the depreciation. Period must use the same units as life.

Value

val

Author

Andri Signorell <andri@signorell.net>

See also

NPV()

Examples

# depreciation allowance for each year
SLN(cost = 50000, salvage = 10000, life = 5)
#> [1] 8000
DB(cost = 50000, salvage = 10000, life = 5)
#> [1] 13761.017  9973.705  7228.739  5239.243  3797.297

50000 - c(0, cumsum(SYD(cost = 50000, salvage = 10000, life = 5)))
#> [1] 50000.00 36666.67 26000.00 18000.00 12666.67 10000.00