After 6 months, $8,000 deposited in a savings account with simple interest had grown to a total of $8,040. What was the interest rate?