跳到主要内容

AMORLINC

Returns the prorated linear depreciation of an asset for each accounting period.

Syntax

expression.AMORLINC(arg1, arg2, arg3, arg4, arg5, arg6, arg7);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe cost of the asset.
arg2RequiredApiRange | ApiName | numberThe date when asset is purchased.
arg3RequiredApiRange | ApiName | numberThe date when the first period ends.
arg4RequiredApiRange | ApiName | numberThe salvage value of the asset at the end of its lifetime.
arg5RequiredApiRange | ApiName | numberThe period for which the depreciation will be calculated.
arg6RequiredApiRange | ApiName | numberThe rate of depreciation.
arg7OptionalApiRange | ApiName | numberThe day count basis to use: -0 or omitted - US (NASD) 30/360; -1 - Actual/actual; -2 - Actual/360; -3 - Actual/365; -4 - European 30/360.

Returns

number

Example

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
worksheet.GetRange("A1").SetValue(func.AMORLINC(3500, "1/1/2018", "3/1/2018", 500, 1, 0.25, 1));