# SLN

| **Name**    | ***SLN***                                                                               |
| ----------- | --------------------------------------------------------------------------------------- |
| Syntax      | SLN (Real Cost, Real Salvage, Real Life)                                                |
| Purpose     | To return the straight-line depreciation of an asset for a single period.               |
| Description | Returns the straight-line depreciation of an asset for a single period.                 |
| Return Type | Double                                                                                  |
| Parameters  | <p>Cost \[System.Double]</p><p>Salvage \[System.Double]</p><p>Life \[System.Double]</p> |

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(43\).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

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20\(44\).png)

Right-click on the function transformation object and select *Preview Output.* You can see that Astera Data Stack has applied the SLN function, and returned the staright-line depreciation value.

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20\(44\).png)
