What is the equation for calculating a machine's efficiency?

I searched all over my textbook and couldn't find it, so I decided to post my question here.