How to Calculate RD ? ( Recurring Deposits ) Calculation Programmatically

 Recurring Deposits  (RDs) are very popular investment instruments that allow allows you to invest a small amount of money and earn interest on it. Various banks and third-party websites provide the RD Calculator facility, where you can find out the amount you will receive at the time of maturity. The calculator is simple to use and displays results immediately. All you have to do is enter basic details like the investment amount, tenure, and rate of interest.  


Ref  & Live Demo 

https://www.bankbazaar.com/recurring-deposit/rd-interest-calculator.html


FOR PHP Developer (Compound Quarterly) 

function rdcal($principle,$year, $rate)

{

$m = $principle *(pow((1+$rate/400),(4*$year))-1)/(1-pow((1+$rate/400),(-1*4/12)));

 return round($m);

FOR JAVASCRIPT & HTML Developer (Compound Quarterly) 

function rdcal(principle,year, rate)

{

var m = principle *(Math.pow((1+rate/400),(4*year))-1)/(1-Math.pow((1+rate/400),(-1*4/12)));

console.log(m.toFixed(0));

return m.toFixed(0);

}

Here 

principle : Monthly Investment 

year : Duration in Year

rate : rate of Interest Annually 

I Never Show this Calculation Before This in any Website or Tutorial Hence I Write this blog for programmers in state forward languages.



Comments