Entrepreneurial skill is not found in everyone. To that end; there is no way to tell when to quit your job, you just have to take a risk.
What is it that you're planning to do? Quitting your day job to do affiliate marketing is probably not a good idea. So, what do you have in mind?