Which is the equation for a machine’s efficiency

The equation for a machine's efficiency is:

Efficiency = (Useful output energy or power / Input energy or power) * 100%

It is usually represented as a percentage.