def METHOD_NAME(self, delta, now=None):
    """
    Returns the new user count for each day in the provided range. The range is
    calculated based by subtracting the delta from the row until now. (now -
    delta until now).
    :param delta: The timedelta that is subtracted from the now date to
        calculate the range. If for example timedelta(days=14) is provided,
        then the count of the last 14 days is returned.
    :type delta: timedelta
    :param now: If not provided, the current date will be used. This date is used
        as base for calculating the range which is (now - delta) until now. The
        timezone of the object is respected.
    :type now: datetime or None
    :rtype: A list containing a dict for each date including the date and the count.
    :rtype: list
    """
    if not now:
        now = timezone.now()
    return (
        User.objects.filter(date_joined__gt=now - delta, date_joined__lte=now)
        .extra(
            {"date": "date(date_joined at time zone %s)"},
            select_params=(str(now.tzinfo),),
        )
        .order_by("date")
        .values("date")
        .annotate(count=Count("id"))
    )