# Borrowing Capacity

The sum of weighted collateral values determined by various Collateral Factors represents the maximum borrowing capacity.

Assume that the maximum borrowing amount (in USD) of a user is **V𝑑𝑚** which is calculated by the following formula.

![](/files/7EFBmQDoBr4BmldHsvOG)

Where:&#x20;

**Vdi:** USD value of deposit asset i&#x20;

**DFj:** Deposit factor of asset i&#x20;

**Vbj:** USD value of borrowed asset j&#x20;

**BFj:** Borrow factor of asset j

Based on Patronus' risk control regulations (embodied in the Deposit factor and Borrow factor), the volatility risk of the pre-borrowed token needs to be considered when specifying the amount that can be borrowed in a particular token.&#x20;

Therefore, the formula for calculating **𝑉𝑥** assuming that the user has a borrowable amount (in USD) in a particular token is as follows.

![](/files/8Z5nXHt0pWgSxvzLn88H)

Where:&#x20;

**BFx:** Borrow factor of asset x


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.patronus.fi/position-management/borrowing-capacity.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
