I do not remember the formula

Electric 5 hp is big power compared to a gas engine.
Can also compensate with pulley changes.
My 20 gallon portable is running on a smaller motor for many years, i slowed it down because it couldnt pull up over 100 psi.