Depreciation {DescTools} | R Documentation |
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)
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. |
val
Andri Signorell <andri@signorell.net>
NPV()
# 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)))