Calculation of Cost of Debt and Equity