Financial.SLN(Double, Double, Double) Methode

Definitie

Retourneert een waarde die de lineaire afschrijving van activa voor één periode aangeeft.

public:
 static double SLN(double Cost, double Salvage, double Life);
public static double SLN(double Cost, double Salvage, double Life);
static member SLN : double * double * double -> double
Public Function SLN (Cost As Double, Salvage As Double, Life As Double) As Double

Parameters

Cost
Double

Verplicht. De initiële kosten van het activum.

Salvage
Double

Verplicht. De waarde van het activum aan het einde van de levensduur.

Life
Double

Verplicht. De lengte van de levensduur van het activum.

Retouren

De lineaire afschrijving van activa voor één termijn.

Uitzonderingen

Life = 0.

Voorbeelden

In dit voorbeeld wordt de SLN functie gebruikt om de lineaire afschrijving van een activum gedurende één periode te retourneren op basis van de initiële kosten (InitCost), de restwaarde aan het einde van de levensduur van het activum (SalvageVal) en de totale levensduur van het activum in jaren (LifeTime).

Dim InitCost, SalvageVal, LifeTime, DepYear As Double
Dim Fmt As String = "###,##0.00"

InitCost = CDbl(InputBox("What's the initial cost of the asset?"))
SalvageVal = CDbl(InputBox("Enter the asset's value at end of its life."))
LifeTime = CDbl(InputBox("What's the asset's useful life in years?"))

' Use the SLN function to calculate the deprecation per year.
Dim SlnDepr As Double = SLN(InitCost, SalvageVal, LifeTime)
Dim msg As String = "The depreciation per year: " & Format(SlnDepr, Fmt)
msg &= vbCrLf & "Year" & vbTab & "Linear" & vbTab & "Doubling" & vbCrLf

' Use the SYD and DDB functions to calculate the deprecation for each year.
For DepYear = 1 To LifeTime
    msg &= DepYear & vbTab & 
        Format(SYD(InitCost, SalvageVal, LifeTime, DepYear), Fmt) & vbTab & 
        Format(DDB(InitCost, SalvageVal, LifeTime, DepYear), Fmt) & vbCrLf
Next
MsgBox(msg)

Opmerkingen

De afschrijvingsperiode moet worden uitgedrukt in dezelfde eenheid als het Life argument. Alle argumenten moeten positieve getallen zijn.

Van toepassing op

Zie ook