O'Reilly logo

VB.NET Language in a Nutshell, Second Edition by Steven Roman PhD, Paul Lomax, Ron Petrusha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required