Given a table of user login events, write a SQL query to calculate the 7-day rolling retention rate for Khan Academy.