Example: Depreciation - Fixed Declining Balance Method
The depreciation of an asset with an initial cost of $2500 and a salvage value of $500 over a period of 3 years is calculated. Here month is 6 since the life of the asset did not begin until the seventh month of the first year.
using System;
using Imsl.Finance;
public class dbEx1
{
public static void Main(String[] args)
{
double cost = 2500;
double salvage = 500;
int life = 3;
int month = 6;
for (int period = 1; period <= life + 1; period++)
{
double db = Finance.Db(cost, salvage, life, period, month);
Console.Out.WriteLine("For period " + period + " " +
db.ToString("C"));
}
}
}
Output
For period 1 $518.75
For period 2 $822.22
For period 3 $481.00
For period 4 $140.69
Link to C# source.