private long getPasswordExpiration(UserEntry user) {
		long timeRemaining = 0;
		if (user != null) {
			// Expiration only applies to default password
			if (defaultPasswordExpirationMS == 0 || user.passwordTime == NO_EXPIRATION) {
				return -1;
			}
			if (user.passwordTime != 0) {
				timeRemaining =
					defaultPasswordExpirationMS - ((new Date()).getTime() - user.passwordTime);
				if (timeRemaining <= 0) {
					timeRemaining = 0;
				}
			}
		}
		return timeRemaining;
	}
Returns the amount of time in milliseconds until the 
user's password will expire.
@param user user entry
@return time until expiration or -1 if it will not expire
Ghidra/Features/GhidraServer/src/main/java/ghidra/server/UserManager.java