private long calcWaitMillisFromNow(DLockRequestMessage request) {
    long result = request.getTimeoutTS();
    if (result != Long.MAX_VALUE) {
      long now = DLockService.getLockTimeStamp(dlock.getDistributionManager());
      result = result - now;
    }
    return result;
  }
Returns time to wait in millis from now based on start and wait in request.

@return the current wait time for the request before it times out
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DLockGrantor.java