code: func (e *Engine) nextReleaseDay() time.Time {
  	now := e.timeManager.Now()
  	nextRelease := e.midnight(now).Add(releaseHourCheck * time.Hour)
  	if nextRelease.Weekday() == releaseDay {
  		if nextRelease.Unix() <= now.Unix() {
  			nextRelease = nextRelease.Add(24 * 7 * time.Hour)
  		}
  		return nextRelease
  	}
  
  	daysDue := int(nextRelease.Weekday()) - int(releaseDay)
  	if daysDue <= 0 {
  		daysDue = -daysDue
  	} else {
  		daysDue = 7 - daysDue
  	}
  
  	return nextRelease.Add(time.Duration(daysDue*24) * time.Hour)
  }
docs: // nextReleaseDay returns the date of the next release day, calculated based on
  // the `releaseHourCheck`-th hour of the next `releaseDay` weekday