static long calculateDeadlineMs(final Time time, final long timeoutMs) {
        return calculateDeadlineMs(requireNonNull(time).milliseconds(), timeoutMs);
    }
Calculate the deadline timestamp based on {@link Timer#currentTimeMs()} and timeout.

@param time      Time
@param timeoutMs Timeout, in milliseconds

@return Absolute time by which event should be completed
clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/CompletableEvent.java