# SYD

| **Name**    | ***SYD***                                                                                                             |
| ----------- | --------------------------------------------------------------------------------------------------------------------- |
| Syntax      | SYD (Real Cost, Real Salvage, Real Life, Real Period)                                                                 |
| Purpose     | To return the sum-of-years depreciation of an asset for a specified period.                                           |
| Description | Returnsthe sum-of-years depreciation of an asset for a specified period.                                              |
| Return Type | Double                                                                                                                |
| Parameters  | <p>Cost \[System.Double]</p><p>Salvage \[System.Double]</p><p>Life \[System.Double]</p><p>Period \[System.Double]</p> |

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FtgUvCsv1hasj57OLZoSh%2F0.png?alt=media)

### **Example**

In this example, we will be passing the required parameters to the function transformation object using a *Variables* object.

Where,

*Cost* = 35000

*Salvage ­*= 3000

*Life* = 10

*Period* = 5

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FiU6xzoXxCKKK4kJgznGz%2F1.png?alt=media)

Right-click on the function transformation object and select *Preview Output.* You can see that Astera Data Stack has applied the SYD function, and returned the sum-of-years depreciation value.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FIsBVjivLtYkGurmDFaMR%2F2.png?alt=media)
