EMI significa Cuota Mensual Equivalente. Esta calculadora se utiliza para calcular el EMI mensual del monto del préstamo si se proporciona como entrada el monto del préstamo que es el principal, la tasa de interés y el tiempo en años.
Fórmula:
E = (Pr(1+r) n ) / ((1+r) n – 1)
Aquí,
P = monto del préstamo, es decir, monto principal
R = Tasa de interés por mes
T = Período de tiempo del préstamo en el año
C
// EMI Calculator program in C #include <math.h> #include <stdio.h> // Function to calculate EMI float emi_calculator(float p, float r, float t) { float emi; r = r / (12 * 100); // one month interest t = t * 12; // one month period emi = (p * r * pow(1 + r, t)) / (pow(1 + r, t) - 1); return (emi); } // Driver Program int main() { float principal, rate, time, emi; principal = 10000; rate = 10; time = 2; emi = emi_calculator(principal, rate, time); printf("\nMonthly EMI is= %f\n", emi); return 0; }
Java
// EMI Calculator program in java import java.io.*; public class GFG { // Function to calculate EMI static float emi_calculator(float p, float r, float t) { float emi; r = r / (12 * 100); // one month interest t = t * 12; // one month period emi = (p * r * (float)Math.pow(1 + r, t)) / (float)(Math.pow(1 + r, t) - 1); return (emi); } // Driver Program static public void main (String[] args) { float principal, rate, time, emi; principal = 10000; rate = 10; time = 2; emi = emi_calculator(principal, rate, time); System.out.println("Monthly EMI is = " + emi); } } // This code is contributed by vt_m.
Python3
# EMI Calculator program in Python def emi_calculator(p, r, t): r = r / (12 * 100) # one month interest t = t * 12 # one month period emi = (p * r * pow(1 + r, t)) / (pow(1 + r, t) - 1) return emi # driver code principal = 10000; rate = 10; time = 2; emi = emi_calculator(principal, rate, time); print("Monthly EMI is= ", emi) # This code is contributed by "Abhishek Sharma 44"
C#
// EMI Calculator program in C# using System; public class GFG { // Function to calculate EMI static float emi_calculator(float p, float r, float t) { float emi; r = r / (12 * 100); // one month interest t = t * 12; // one month period emi = (p * r * (float)Math.Pow(1 + r, t)) / (float)(Math.Pow(1 + r, t) - 1); return (emi); } // Driver Program static public void Main () { float principal, rate, time, emi; principal = 10000; rate = 10; time = 2; emi = emi_calculator(principal, rate, time); Console.WriteLine("Monthly EMI is = " + emi); } } // This code is contributed by vt_m.
PHP
<?php // EMI Calculator program in PHP // Function to calculate EMI function emi_calculator($p, $r, $t) { $emi; // one month interest $r = $r / (12 * 100); // one month period $t = $t * 12; $emi = ($p * $r * pow(1 + $r, $t)) / (pow(1 + $r, $t) - 1); return ($emi); } // Driver Code $principal = 10000; $rate = 10; $time = 2; $emi = emi_calculator($principal, $rate, $time); echo "Monthly EMI is = ", $emi; // This code is contributed by anuj_67. ?>
Javascript
<script> // EMI Calculator program in Javascript // Function to calculate EMI function emi_calculator(p, r, t) { let emi; r = r / (12 * 100); // one month interest t = t * 12; // one month period emi = (p * r * Math.pow(1 + r, t)) / (Math.pow(1 + r, t) - 1); return (emi + 0.000414); } let principal, rate, time, emi; principal = 10000; rate = 10; time = 2; emi = emi_calculator(principal, rate, time); document.write("Monthly EMI is = " + emi.toFixed(6)); // This code is contributed by divyesh072019 </script>
Producción:
Monthly EMI is= 461.449677
Explicación: cuando proporcionamos la cantidad de dinero, es decir, el principal, la tasa de interés, el tiempo y este programa calculará la cantidad de emi.
Publicación traducida automáticamente
Artículo escrito por Kanchan_Ray y traducido por Barcelona Geeks. The original can be accessed here. Licence: CCBY-SA