🐍 Using Python, write a program to calculate the monthly payments of a mortgage at a given interest rate. Also figure out how long it will take the user to pay back the loan. For added complexity, add an option for users to select the compounding interval (Yearly, Bi-Yearly, Quarterly, Monthly, Weekly, Daily) Solution def emicalculator(loan, interest, interval, emi): day_count = 0 remaining = loan if interval[0].lower()=='d': while remaining > 0: day_count += 1 remaining += (interest/100)*remaining if day_count%30==0: remaining -= emi if remaining>=loan: print('Either lower interest rate or increase EMI...
Project Weekay | Resume | LinkedIn Profile
NodeJS, AWS, MongoDB, ReactJS, Django, Python, ML with Scikit Learn, Matplotlib, Seaborn
Engineering, UX, Marketing, Product Designing, Business
sayhellotovinit@gmail.com | +91 99239 08880 | Pune, India