6. Functions : Finance Library Functions : SLN Function : Example—SLN function:
 
Share this page                  
Example—SLN function:
/*  Compute the Straight Line depreciation for the
**  asset with an initial cost of $5,000, a life of
**  five years, and a salvage value of $1,000.
*/
dep = sln(cost = 5000, salvage = 1000, life = 5);