What are the components of cost of capital?