Defining a flexible repayment plan