The opportunity cost of capital

What is the opportunity cost of capital? How can a company measure opportunity cost of capital for a project that is considered to have average risk?