# 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://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(44\).png)

### **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://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20\(45\).png)

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://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20\(45\).png)
