The formula depends on what thermistor you are using. I would suggest that you look up the datasheet for your specific thermistor.
When I was playing around with mine, I calibrated mine with an accurate thermometer by recording the resistance at various temperatures. Then I plotted them and used that the convert.