JSFiddle - React, Tailwind, and code Playground

by sunil puvvada

JavaScript

var MonthlyPaymentAmount = parseFloat(303261);
            // var APR = interest / 100; //16.9% APR
            var InterestRate = 0.0075; //monthly interest 
    var extraPaid = 146;
    
    var b = Math.pow((1 + InterestRate), extraPaid);
    
            /* var a = MonthlyPaymentAmount  *( InterestRate * ( b / b - 1 )); */
            
            	var N = 146;
			var I = 0.0075;
			var v = Math.pow((1 + I), N);
			var t = (I * v) / (v - 1);
			var result = MonthlyPaymentAmount * t;
      
      

alert(result);