NIMU'S CAR LOAN CALCULATOR

def calculate_emi(principal, annual_rate, years): # রেটকে মাসিক রেটে কনভার্ট করা monthly_rate = annual_rate / (12 * 100) months = years * 12 # EMI ফর্মুলা emi = (principal * monthly_rate * (1 + monthly_rate)**months) / ((1 + monthly_rate)**months - 1) return emi # ইউজার ইনপুট নেওয়া principal = float(input("গাড়ির লোনের পরিমাণ (₹): ")) annual_rate = float(input("সালভিত সুদের হার (%): ")) years = int(input("লোনের সময়কাল (বছর): ")) emi = calculate_emi(principal, annual_rate, years) total_payment = emi * years * 12 total_interest = total_payment - principal print(f"\n💰 মাসিক EMI: ₹{emi:.2f}") print(f"📆 মোট পরিশোধ: ₹{total_payment:.2f}") print(f"💸 মোট সুদ: ₹{total_interest:.2f}")

Comments

Popular posts from this blog

NIMU 'S CAR RACING GAME

CAR LOAN CALCULATOR