Madison deposited $7,000 into an account that earns simple interest. After 36 months, Madison had earned $840 in interest. What was the interest rate of the account?