How long is a work visa good for AFTER you leave the company?

Hi… If I am in India on a work visa and I quit in September but my Visa is good until November, how long can I stay? I need a few weeks to arrange things before I go. Thanks! If you can point me to a source that gives in writing the answer to this that would be a big help. Thanks!