H1B working outside of US temporarily max duration?

I am on h1b and I have family situation where I have to travel out of US to my home country and stay there for few months. Lets say my employer doesn’t have a problem and I can work remotely but still get paid US salary. My visa is valid until 2022.
Are there any restrictions on how many max days I can be outside of US because technically i am working away from my location mentioned in LCA ?