Documentation

### This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English version of the page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

# depsoyd

Sum of years' digits depreciation

## Syntax

```Sum = depsoyd(Cost,Salvage,Life)
```

## Arguments

 `Cost` Cost of the asset. `Salvage` Salvage value of the asset. `Life` Depreciable life of the asset in years.

## Description

`Sum = depsoyd(Cost,Salvage,Life)` calculates the depreciation for an asset using the sum of years' digits method. `Sum` is a `1`-by-`Life` vector of depreciation values with each element corresponding to a year of the asset's life.

## Examples

collapse all

This example shows how to calculate the depreciation for an asset using the sum of years' digits method where the asset is \$13,000 with a life of 10 years. The salvage value of the asset is \$1000.

`Sum = depsoyd(13000, 1000, 10)'`
```Sum = 10×1 103 × 2.1818 1.9636 1.7455 1.5273 1.3091 1.0909 0.8727 0.6545 0.4364 0.2182 ```