6. Functions : Finance Library Functions : DEPR Function : Example—DEPR function:
 
Share this page                  
Example—DEPR function:
/*  Compute the sum of digits depreciation factor for
**  the seventh year of an asset whose life is ten
**  years, and calculate the depreciation amount.
*/
deprFact = depr(type = 'SU', period = 7, life = 10);
deprAmt  = deprFact * cost;