code: func (d *namespacedResourcesDeleter) estimateGracefulTermination(gvr schema.GroupVersionResource, ns string, namespaceDeletedAt metav1.Time) (int64, error) {
  	groupResource := gvr.GroupResource()
  	klog.V(5).Infof("namespace controller - estimateGracefulTermination - group %s, resource: %s", groupResource.Group, groupResource.Resource)
  	estimate := int64(0)
  	var err error
  	switch groupResource {
  	case schema.GroupResource{Group: "", Resource: "pods"}:
  		estimate, err = d.estimateGracefulTerminationForPods(ns)
  	}
  	if err != nil {
  		return estimate, err
  	}
  	// determine if the estimate is greater than the deletion timestamp
  	duration := time.Since(namespaceDeletedAt.Time)
  	allowedEstimate := time.Duration(estimate) * time.Second
  	if duration >= allowedEstimate {
  		estimate = int64(0)
  	}
  	return estimate, nil
  }
docs: // estimateGrracefulTermination will estimate the graceful termination required for the specific entity in the namespace