sahiljadhav1221
Initial commit - Loan Prediction Project
e93c178
raw
history blame contribute delete
212 Bytes
def calculate_emi(principal, rate, tenure_years):
r = rate / (12 * 100)
n = tenure_years * 12
if n == 0:
return 0
emi = (principal * r * (1 + r) ** n) / ((1 + r) ** n - 1)
return emi