code: func (r *Number) Max(now time.Time) float64 {
  	var max float64
  
  	r.Mutex.RLock()
  	defer r.Mutex.RUnlock()
  
  	for timestamp, bucket := range r.Buckets {
  		// TODO: configurable rolling window
  		if timestamp >= now.Unix()-10 {
  			if bucket.Value > max {
  				max = bucket.Value
  			}
  		}
  	}
  
  	return max
  }
docs: // Max returns the maximum value seen in the last 10 seconds.