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.
OT - this will tell you how they arrived at the data.
Its not physics, its mathematical plotting based on trials and known factors (crank HP, MPH, ET and weight) to create a workable formula that relates them to each other.