def METHOD_NAME(
    self,
    time_granularity: TimeGranularity,
    time_unit_count: int,
) -> TimeRangeConstraint:
    """Moves the start of the time constraint back by 1 window.
    if the metric is weekly-active-users (ie window = 1 week) it moves time_constraint.start one week earlier
    """
    start_ts = pd.Timestamp(self.start_time)
    offset = offset_period(time_granularity) * time_unit_count
    adjusted_start = (start_ts - offset).to_pydatetime()
    return TimeRangeConstraint(
        start_time=adjusted_start,
        end_time=self.end_time,
    )