The NY Times web-site (free reg required) has a nice graphical rent-vs-buy calculator. It seems to take most things into account. If you want to change stuff (like your tax bracket, etc) the app has "advanced settings".
I found this via "Renting vs. Buying: The Realities of Home-Ownership", a July 16 post at GetRichSlowly.com.