Defining flexible repayment plan