Personally speaking, the best time to quit the job is you are not happy anymore working with your company. You can not force yourself to be productive despite that it is the requirement of the company. Although you need to be wise with this idea. You can quit your job if you found a new one. Being jobless is not a good thing.