Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70754

I want to creat a EMI calculator but showig some error

$
0
0

@flycoders_sourav wrote:

there is my code.

onChangehomeloaninterest(ev: any) {
  // alert(this.homeloaninterest);
   this.monthlyinstrest=12/this.homeloaninterest/100;// calculate the monthly instrest 0.012
  //alert(this.monthlyinstrest);
}


 onChangehomeloanloantenure(ev: any) {

  this.month= this.homeloanloantenure*12;// here convert  year to month
let payments=Math.pow(1+this.monthlyinstrest,this.month);
this.finalammount=(this.homeloanamount*payments*this.monthlyinstrest)/(payments-1);
alert(this.finalammount)

When i put the value
principal=100000
rateofinstrest=10%
time=1;

showing this EMI amount=>8997.54332793509 but it is wrong.

its correct 8791.59

please help me anyone.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70754

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>