private long getCounterValueAge(long time) {
    return time - Utilities.secondsToMillis(mCounter.getValueStartTime(getCounterValue(time)));
  }
Gets the age of the counter value at the specified time instant.

@param time time instant (milliseconds since epoch).

@return age (milliseconds).
java/com/google/android/apps/authenticator/otp/TotpCountdownTask.java