dti_ratio()
Debt to income ratio.
Usage
dti_ratio(
monthly_debt_payments,
gross_monthly_income,
)Monthly debt payments as a percent of gross monthly income. From the Managing Debt chapter.
Parameters
monthly_debt_payments: ArrayLike-
Total monthly debt payments.
gross_monthly_income: ArrayLike- Monthly income before taxes. Must be greater than 0.
Returns
float or numpy.ndarray-
Percentages (
28.3is 28.3%).
Raises
TypeError-
If an argument is not numeric.
ValueError-
If an argument contains missing values, or
gross_monthly_incomeis not greater than 0.
Examples
>>> from perfinpy import dti_ratio
>>> dti_ratio(monthly_debt_payments=1061, gross_monthly_income=3750)28.29