ideal 1/4 mile gear ration

Is there a calculator or can someone figure the ideal gear ratio, if the constants are known? Such as peak hp, peak rpm, tire size, etc.

Also, should peak rpm be obtained when crossing the traps?