How long can I stay outside of US on H1B visa?

I am on a H1B visa and already have it stamped. My question is how much time I can stay outside of US, working from home from my home country without any issue in re-entering the US again?