Calculating cost of equity capital