// Asuransi

function Step1() {
	this.name = "Asuransi";
}

Step1.prototype.getTotal = function() {
	
	this.total = 0;
	pendapatan = parseInt(GetValueById("txtPendapatanBulanan"));
	interestRate = parseFloat(GetValueById("txtInterestRate"))/100;
	
	this.total = pendapatan / (interestRate/12);
		
	SetDocText("tot" + this.name, DecimalAsString(this.total)) ;
}

// The real calculation

var Step_1 = new Step1; // Jumlah Tahun sebelum pensiun

function CalculateStep(step) {
	Step_1.getTotal();
}
