// Interest Rate 

function IR(P, i, n){
	this.P = P;
	this.i = i;
	this.n = n;
}

// returns result
IR.prototype.result = function(){
	return this.P * Math.pow(1 + this.i, this.n);
}
// returns input values
IR.prototype.inputData = function(){
	return this.P + " " + this.i + " " + this.n;
}

// Copyright engineeringtoolbox.com