Regenerating the repayment schedule for loans funded in tranches