Public feed #602634

Miscellany

public text v1 · immutable
Raw Edit
·published 2007-07-04 06:01 UTC
rendered paste body
double note_payment = calc_payment(note_total, note_term, note_amortization);


public Double calc_payment(double present_value, double payments, double interest) throws Exception {
	interest = interest / 12;
	double power =  Math.pow(( 1 + interest ),payments);
	double payment = 0.00;
	payment = (interest * (present_value * power) / (power - 1)) ;
	return payment; 		
}