HP x .746 x hours x Kw cost / motor efficiency
Example: 50 HP air compressor that runs 8 hours a day 5 days a week for a year with a $.06 Kw electric rate and a 90% efficient electric motor.
50 HP x .746 x 2,080 hours x $.06 / .90 = $5,172.26 per year