I don't think it's calculated. If I'm honest, I think it's made up.
When I take a picture with film in a camera, the picture ends up whatever size I choose it to be when I print it. Why is digital stuff any different? The size of images, displayed or printed depends very much on the hardware and application used and little, or not at all, on the nominal dpi (and only jpegs, amongst major graphics formats, even claim to have such a property).
My Windows machine is set at (the default) 96dpi - this means, in theory, that my display uses 96 dots (pixels) to display what it thinks is an inch. Programs such as Word use this to determine how to display at different Zoom percentages. I don't know, for sure, the dot pitch of my monitor but I think it's 0.26mm, which means 97.7 of them measure an inch. I used to have a 5:4 ratio monitor that I ran at a 4:3 resolution, which further complicated things. This stuff gets very complicated very quickly, and I haven't even mentioned printers and scanners (some of which claim to scan at 2400dpi or more - using interpolation, of course - they can't do it optically).
The size of a printout is, to some extent, a matter of preference and whilst the "Dimensions" (in pixels) may help ricardo1023 identify those he wants to print large, I think it unlikely that the dpi will help.
Enjoy,
Tony
------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
I'm working (slowly) on my own website