Title: An equilibrium model of company finance and the cost of capital