SLN: Several Methods of Depreciation of an Asset

View source: R/DescTools.r

DepreciationR Documentation

Several Methods of Depreciation of an Asset

Description

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.

Usage

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(s)

Andri Signorell <andri@signorell.net>

See Also

NPV()

Examples

# depreciation allowance for each year
SLN(cost = 50000, salvage = 10000, life = 5)
DB(cost = 50000, salvage = 10000, life = 5)

50000 - c(0, cumsum(SYD(cost = 50000, salvage = 10000, life = 5)))



DescTools documentation built on Sept. 26, 2024, 1:07 a.m.