If you search for 1/4 mile hp calculator you'll find a bunch. Their results will vary quite a bit. I have no idea what math is behind them but I assume it is loosely based on physics.
I would be interested in seeing some formulas for hp vs compression too (for a given engine) although there might be too many variables.