What is the formula for getting hydroelectric power?

P=(M/t)gh