Hi Andy,
I'm personally unaware of any formula, though that doesn't mean it doesn't exist. You can get a lot of information...after you take a photo..such as image size and resolution by using a software program that reads exif data from jpeg images. Take a look at the link below and let us know if this is what you are looking for.
Related reading:
What is EXIF?http://www.digicamhelp.com/what-is-exif/