Extracted the getExpires method, making token expiration calculations more uniform and robust.
Fixed date calculation.