How long to obtain a country visa when someone is in the US?

I will visit New Delhi before April ends, and I will stay there for a month. I am wondering how immediate I must apply for the country visa. Will there be other requirements that I will need? I already have a Passport.

You can visit some helpful websites for the details that you need.