Determining the cost of debt