@travishorn/financejs
    Preparing search index...

    Function sln

    • Calculates the straight-line depreciation of an asset for one period.

      Parameters

      • cost: number

        The initial cost of the asset.

      • salvage: number

        The value at the end of the depreciation (sometimes called the salvage value of the asset).

      • life: number

        The number of periods over which the asset is depreciated (sometimes called the useful life of the asset).

      Returns number

      the straight-line depreciation

      sln(30000, 7500, 10); // 2250