# 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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/rAZ9k9KZ55AqUcdCdVoa/0.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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/IL9iC98TflhMyaPLM9So/1.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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/5m5JOl1JUUBheETsIXLm/2.png)
