fixed the wrong cohorts calculation