When do I need to pay back the loan ?

as of 06/02/2022
There is no specific time to pay back the loan. You can keep the loan as long as you want if your position is safe.
Keep in mind that the accrued interest will increase as time passes, making your health factors decrease and increasing the liquidation risk of your assets.