You have to ask the local community or village Committee about the isolation time, and the regulations vary from place to place.
You can't go out during quarantine. According to the provisions of the Criminal Law, those who go out without permission and cause the spread of COVID-19 epidemic or cause significant spread shall be detained for public security 15 days, and criminal detention shall be sentenced to "endangering public security by dangerous means".