depreciationAmordegrc

Evaluates the depreciation for each accounting period. During the evaluation of the function a depreciation coefficient based on the asset life is applied.

Synopsis

depreciationAmordegrc (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 depreciationAmordegrc computes the depreciation for each accounting period. This function is similar to depreciationAmorlinc. However, in this function a depreciation coefficient based on the asset life is applied during the evaluation of the function.

Example

In this example, depreciationAmordegrc 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.depreciationAmordegrc import depreciationAmordegrc, 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)

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

Output

The depreciation for the second accounting period is $334.00.