def debt_to_capital_ratio(debt, equity):
    """Computes debt-to-caital ratio.

    @params
    -------
    debt: total debt
    equity: total shareholders' equity

    returns
    -------
    Debt-to-capital ratio, int or float

    explanation
    -----------

    """
    return debt / (debt + equity)
