The "passwd -S [loginid] " does not correctly return account expirey information.
For account and password expiry information there is the chage command that whose purpose is to do just that. passwd -S only reports whether a password is locked or not using passwd -l / passwd -U