A company obtained a short-term bank loan of $500,000 at an annual interest rate of 8%. As a condition of the loan, the company is required to maintain a compensating balance of $100,000 in its checking account. The checking account earns interest at an annual rate of 3%. Ordinarily, the company maintains a balance of $50,000 in its account for transaction purposes. What is the effective interest rate of the loan?