A GENERAL ENERGY FORMULA