How do you calculate the weighted average cost of capital (WACC)?

What is the process for finding a company’s average cost of capital from all sources?