> For the complete documentation index, see [llms.txt](https://defi-for-you.gitbook.io/faq/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://defi-for-you.gitbook.io/faq/list/p2p/repay.md).

# Repay

**1. What assets do I need to repay?**

You can repay your loan in the asset you borrowed or in DFY. For example, if you borrow 1,000 USDT, you will have to repay 1,000 USDT (the principle debt) plus accrual interest (in USDT or DFY depending on Lender's policy)

**2. Can I repay my loan ahead of schedule?**

Yes. You can definitely repay the full loan ahead of schedule. Firstly, you have to complete all the unpaid penalty and interest amount. Interest is calculated until the month/week you decide to repay (based on the duration you selected as Months or Weeks)

**3. How is the interest calculated?**

![](/files/-Mj7dNbdXrIJNL7UCY_m)

| Parameters               | Description                                                                                                                                                                                                                                               |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| In                       | The interest of current period                                                                                                                                                                                                                            |
| Interest rate per period | <p>The interest you see is X% / year. If the interest rate =10%, it means:</p><ul><li>When the duration is week, interest/week = Loan \* (10/100) \* (7/365)</li><li>When the duration is month, interest /month = Loan \* (10/100) \* (30/365)</li></ul> |
| Loan                     | Unpaid principal debt till current period                                                                                                                                                                                                                 |
| n                        | Current period                                                                                                                                                                                                                                            |

The interest is calculated every week/month. Starting from the contract start date with the duration/period definitions: 1 week = 7 days, 1 month = 30 days, and 1 year = 365 days.

**4. When do I have to pay the interest?**

* To the loan duration = week, you have 2 first days of every week to pay
* To the loan duration = month, you have 7 first days of every month to pay

If you don't pay enough the interest amount on time, the system will report as +1 late payment and requires you to pay extra penalty  for the unpaid interest amount (A new period is created automatically for this penalty repayment)

**5. How is the penalty calculated?**

If you don't pay enough the interest amount on time, the system will report as +1 late payment and requires you to pay extra penalty  for the unpaid interest amount applied the following formula (A new period is created automatically for this penalty repayment)

![](/files/-Mj7djuLUwnyUW74jZHa)

| Parameters               | Description                                                                                                                                                                        |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Parameters               | Description                                                                                                                                                                        |
| n                        | Current period                                                                                                                                                                     |
| n-1                      | Previous period                                                                                                                                                                    |
| Pn                       | Penalty of current period                                                                                                                                                          |
| Pn-1                     | Penalty of previous period                                                                                                                                                         |
| Interest rate per period | <p></p><ul><li>When the duration is week, interest/week = Loan \* (10/100) \* (7/365)</li><li>When the duration is month, interest /month = Loan \* (10/100) \* (30/365)</li></ul> |
| Ln-1                     | Unpaid interest of previous period                                                                                                                                                 |
| Penalty rate             | 150%                                                                                                                                                                               |

**6. When do I have to pay the penalty?**

* To the loan duration = week, you have 2 first days of every week to pay the interest, this means you can pay for the penalty from the 3rd day till 7th day of the week period based on the contract start date.
* To the loan duration = month, you have 7 first days of every month to pay the interest, this means you can pay for the penalty from the 8th day till 30th day of the month period based on the contract start date.

If you don't pay enough the interest amount on time, the system will report as +1 late payment and requires you to pay extra penalty  for the unpaid interest amount.

**7. How is  the penalty and interest having same period calculated?**

If you don't pay enough the interest amount on time, the system will report as +1 late payment and requires you to pay extra penalty for the unpaid interest amount.

Applied the formula in question 3,

**Penalty = Pn-1 + Pn-1 \* (Interest rate per period) + Ln-1 \* (Penalty rate)**

* If penalty is a separated period which has been created: Pn-1 and Ln-1 is as normal.
* If penalty is at the same period as interest's:  Pn-1 is as normal, Ln-1 = 0

E.g. Interest = 10%, Duration = 3 weeks. Unpaid Interest period 1 = 0.15342DFY

* Penalty period 2 (newly created) = 0 + 0 \* (10/100) \* (7/365) + 0.15342 \* (150/100) =2.23013DFY
* Penalty period 3 (same period as interest's) = 2.23013 +  2.23013 \* (10/100) \* (7/365) + 0 \* (150/100) = 0.23057DFY

![](/files/-Mj7dp9K5ETvYhygUfrU)

**8. Can you provide me with a specific example please?**

![](/files/-Mj7dsSeNxKanLtKoQuo)

![](/files/-Mj7du7iFQ5W6I-K_rCl)

| Period                                                    | Unpaid Penalty | Total unpaid penalty (Amount might vary due to exchange rate)                                                                                       | Unpaid interest | Total unpaid interest (Amount might vary due to exchange rate)                                 |
| --------------------------------------------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- | ---------------------------------------------------------------------------------------------- |
| 1                                                         | 0              | 0                                                                                                                                                   | 0               | <p>= Loan \* (Interest rate per period)</p><p>= Loan \* (100/100) \* (7/365) = 1.53425 DFY</p> |
| <p>2</p><p>(Added this period due to unpaid interest)</p> | 0              | <p>= Pn-1 + Pn-1 \* (Interest rate per period) + Ln-1 \* (Penalty)</p><p>= 0 + 0 \* (100/100) \* (7/365) + 1.53425 \* (150/100)</p><p>= 2.30138</p> | 0               | 0                                                                                              |
| 3                                                         | 0              | <p>= Pn-1 + Pn-1 \* (Interest per period) + Ln-1 \* (Penalty)</p><p>= 2.30138 + 2.30138 \* (100/100) \* (7/365) + 0\* (150/100)</p><p>= 2.34552</p> | 0               | <p>= Loan \* (Interest rate per period)</p><p>= Loan \* (100/100) \* (7/365) = 1.2274 DFY</p>  |

**9. How do I pay for penalty, interest or principle amount?**

Step1: Connect wallet and click on \[**My Account**]

![](/files/-Mj7eEXt_M90uYtpN_6s)

Step2: click on \[**Borrow profile**] - \[**Contract**] and select an active contract you desire to pay

![](/files/-Mj7eHKjZIgUZd3sZa51)

In step 2, here you can view the contract details after selecting a contract.

Contract details

![](/files/-Mj7e_UDuFD1fPdjzjU-)

Current LTV information. You can also learn more about LTV and  LTV liquidation threshold  in [ LTV & LTV liquidation threshold](/faq/list/p2p/ltv-and-ltv-liquidation-threshold.md)

![](/files/-Mj7ecnUc3Elq_wpHeqN)

Repayment information

![](/files/-Mj7egRYxgNo7o75lQhV)

Step 3: Click on \[**Repayment**]

You can enter a desired number in Amount box or simply select Max to pay total Penalty, Interest, or Loan.

![](/files/-Mj7ek27NXS50BrMdtOE)

In step 3, after you complete the repayment for Penalty, Interest, or Loan on wallet extension or D-app, the total loan will be updated in Repayment History section.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://defi-for-you.gitbook.io/faq/list/p2p/repay.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.
