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

    Parameters
    ----------
    debt : int or float
        Total debt
    equity : int or float
        Total shareholders' equity

    Returns
    -------
    out : int or float
        Debt-to-capital ratio
    """
    return debt / (debt + equity)