It is also used, along with the cost of debt, as part of calculating a company's weighted average cost of capital, or WACC. There are two ways to calculate the cost of capital: using the dividend compounding model or the capital asset pricing model (CAPM).