> For the complete documentation index, see [llms.txt](https://wiki.patronus.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.patronus.fi/position-management/borrowing-capacity.md).

# 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.

![](https://879624952-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYgTRbmDtUNdZT6XOUc9k%2Fuploads%2FvefL7LQ4nDRoHqEQUW4C%2Fimage.png?alt=media\&token=c455de71-8c79-4e09-964e-03adc4c22a1a)

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.

![](https://879624952-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYgTRbmDtUNdZT6XOUc9k%2Fuploads%2FNkIgP1fg3xlZ00PIO1bS%2Fimage.png?alt=media\&token=14382781-4b54-4b26-8a90-848705a1441e)

Where:&#x20;

**BFx:** Borrow factor of asset x
