How long can a resident alien stay outside the us?

As long as they want until they declare citizenship in anthour country