class ExpirationTimeProvider {

    public long getExpirationSeconds(final long validityValue) {
        return ((validityValue - currentDateProvider.getCurrentTimeInMillis()) / SECOND_DIVIDER) % MINUTE_DIVIDER;
    }

}