Skip to main content

credit_utilization()

Credit utilization: a card balance as a percent of its limit.

Usage

Source

credit_utilization(
    balance,
    credit_limit,
)

From the Managing Debt chapter.

Parameters

balance: ArrayLike

Card balance.

credit_limit: ArrayLike
Credit limit. Must be greater than 0.

Returns

float or numpy.ndarray
Percentages (30 is 30%).

Raises

TypeError

If an argument is not numeric.

ValueError
If an argument contains missing values, or credit_limit is not greater than 0.

Examples

>>> from perfinpy import credit_utilization
>>> credit_utilization(balance=900, credit_limit=3000)

30.0