SLN
function SLN(
arg1: number = null,
arg2: number = null,
arg3: number = null,
): number | string | boolean
Description
Returns the straight-line depreciation of an asset for one period.
Parameters
- arg1
number
null Is the initial cost of the asset.
- arg2
number
null Is the salvage value at the end of the life of the asset.
- arg3
number
null Is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset).
Returns
number | string | boolean
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.SLN(3500, 500, 5));