Here's a displacement and static/dynamic compression ratio calculator. While intended mostly for Pontiac engines, it'll work just as well for any other OHV V8 engine too as long as you can provide all the necessary specifications. If you can't find some of the numbers, just leave them as is. The numbers pre-entered correspond to a stock '77/'78 Pontiac 400 W72.
Please note, this calculator requires that JavaScript be turned on in your browser.