Whats the formula to find support and resistence of nifty?

There is no particular formula for S&R. However there is a technique to plot the same. Check out http://zerodha.com/varsity/chapter/support-resistance/ for more details.

An earlier similar query has been answered.

Searching for the keyword 'support' would have yielded the earlier query link.