You can write the formula for calculating the cost of debt as
Where B0 is the repayment of debt on maturity and other variables as defined earlier Equation (2) can be used whether debt is issued at par or discount or premium, i.e., Bo = F or Bo > For Bo < F.