depreciationAmorlinc

Evaluates the depreciation for each accounting period. This function is similar to depreciationAmordegrc, except that depreciationAmordegrc has a depreciation coefficient that is applied during the evaluation that is based on the asset life.

Synopsis

depreciationAmorlinc (cost, issue, firstPeriod, salvage, period, rate, basis)

Required Arguments

float cost (Input)
Initial value of the asset.
date issue (Input)
The date on which interest starts accruing. For a more detailed discussion on dates see the Usage Notes section of this chapter.
date firstPeriod (Input)
Date of the end of the first period. For a more detailed discussion on dates see the Usage Notes section of this chapter.
float salvage (Input)
The value of an asset at the end of its depreciation period.
int period (Input)
Depreciation for the accounting period to be computed.
float rate (Input)
Depreciation rate.
int basis (Input)
The method for computing the number of days between two dates. It should be one of DAY_CNT_BASIS_ACTUALACTUAL, DAY_CNT_BASIS_NASD, DAY_CNT_BASIS_ACTUAL360, DAY_CNT_BASIS_ACTUAL365, or IMSL_DAY_CNT_BASIS_30E36. For a more detailed discussion see the Usage Notes section of this chapter.

Return Value

The depreciation for each accounting period. If no result can be computed, NaN is returned.

Description

Function depreciationAmorlinc computes the depreciation for each accounting period.

Example

In this example, depreciationAmorlinc computes the depreciation for the second accounting period using the US (NASD) 30/360 day count method. The security has the issue date of November 1, 1999, end of first period of November 30, 2000, cost of $2,400, salvage value of $300, depreciation rate of 15%.

from __future__ import print_function
from numpy import *
from datetime import date
from pyimsl.math.depreciationAmorlinc import depreciationAmorlinc, DAY_CNT_BASIS_NASD

cost = 2400.00
salvage = 300.00
period = 2
rate = .15
basis = DAY_CNT_BASIS_NASD

issue = date(1999, 11, 1)
first_period = date(2000, 11, 30)

amorlinc = depreciationAmorlinc(cost, issue,
                                first_period, salvage, period, rate, basis)
print("The depreciation for the second accounting period is", end=' ')
print("$%.2f." % (amorlinc))

Output

The depreciation for the second accounting period is $360.00.