I\'m trying to calculate the number of payments but output was wrong so i tried to calculate a simple operation on the month value.But \"+\" operator doesn\'t sum my values it a
var months=parseInt(principal)+parseInt(interestrate);
Values need to be converted to an integer first.