You can even calculate MACRS using small java code:
Code:
import com.imsl.finance.*;
import java.text.NumberFormat;
public class vdbEx1 {
public static void main(String args[]) {
double cost = 30000;
double salvage = 7000;
int life = 12;
int start = 5;
int end = 7;
double factor = 3.;
boolean no_sl = false;
double vdb = Finance.vdb(cost, salvage, life, start, end,
factor, no_sl);
System.out.println ("The depreciation allowance between the " +
"5th and 7th year is " + NumberFormat.getCurrencyInstance().format(vdb));
}
}
Bookmarks