Calculating rolling cohort retention with SQL | Hacker News Reader