Calculation Error | WordPress.org

[ad_1]

Hello;
Where is the error in a script? Actually, my every step is correct.
I’m doing a loan calculation.

I do checkouts in many places.
Installment amount: 5000
Interest rate: 1%
Term: 10 Months
Total loan amount = ? I’m calculating how much should be…

The result should definitely be 46,728.00 TL.

I apply these steps to my coding.

if (fieldname19 === 'B') {
	var faizOrani = fieldname20 / 100;
	var aylikFaizOrani = POW(1 + faizOrani, 1 / 12) - 1;
	var kriter1b = fieldname18 * (POW(1 + aylikFaizOrani, fieldname21) - 1) / aylikFaizOrani;
    jQuery('#calculation-kriter1b').html(kriter1b);
    jQuery('.kriter1-aciklama').html('Kredi Tutarı :');
    jQuery('.kriter1-sonuc').html(kriter1b + ' TL');
}

filename20 = Interest rate (%1)
fieldname18 = Installment Amount (5000 TL)
fieldname21 = Maturity (10 Months)
————————————–

var aylikFaizOrani = (1 + 0.01)^(1/12) – 1 ≈ 0.0082672412 (This turns out to be wrong.)

————————————–
The result is always wrong.
Sample Form

  • This topic was modified 3 hours, 17 minutes ago by klingbeil.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer