When is it okay to quit?

Writing is one of those things. You can treat it like an art, or a science. But you must learn to be objective about your own work.