Source: https://money.stackexchange.com/questions/61008/how-to-calculate-the-effective-interest-rate-of-a-loan-that-must-be-paid-back-wi