private long getLogSegmentDeleteRefTimeMs(ScanResults results, TimeRange timeRange) {
    long refTimeInMs = results == null || timeRange.getStartTimeInMs() >= results.logSegmentForecastEndTimeMsForDeleted
        || timeRange.getEndTimeInMs() < results.logSegmentForecastStartTimeMsForDeleted ? REF_TIME_OUT_OF_BOUNDS
        : timeRange.getEndTimeInMs();
    if (refTimeInMs != REF_TIME_OUT_OF_BOUNDS && refTimeInMs >= results.logSegmentForecastEndTimeMsForDeleted) {
      refTimeInMs = results.logSegmentLastBucketTimeMsForDeleted;
    }
    return refTimeInMs;
  }
Given {@link ScanResults} and a {@link TimeRange}, try to find the latest point in time that is within the
{@link TimeRange} and the log segment forecast range for deleted.
@param results the {@link ScanResults} with the log segment forecast range information
@param timeRange the {@link TimeRange} used to find the latest shared point in time with the log segment forecast
                 range
@return the latest shared point in time in milliseconds if there is one, otherwise REF_TIME_OUT_OF_BOUNDS (-1)
is returned
ambry-store/src/main/java/com/github/ambry/store/BlobStoreStats.java