Is the a simple formula to comcert the DPI specs of a scanner to calculate how large a scanned file will be in Megabytes??

Also a way to calculate file sizes for 300 - 360 dpi printing of 24x 30 inch prints

Thanks