Sergi Adamchuk's blog
Everything that can be usefull in future.
March 16, 2011
How to determine DPI of a screen by resolution in pixels and screen size
Screen resolution in pixels (w*h)
Screen size in inches (d - diagonal)
DPI = sqrt(w*w+h*h)/d
InstaCalc Online Calculator