Name

SLN Function

Class

Microsoft.VisualBasic.Financial

Syntax

SLN(cost, salvage, life)
cost (required; Double)

The initial cost of the asset

salvage (required; Double)

The value of the asset at the end of its useful life

life (required; Double)

The length of the useful life of the asset

Return Value

A Double representing depreciation per period

Description

Computes the straight-line depreciation of an asset for a single period

Rules at a Glance

  • The function uses a very simple formula to calculate depreciation:

    (cost - salvage) / life
  • The depreciation period is determined by the time period of life.

  • All arguments must be positive numeric values.

Get VB.NET Language in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.