How long to pay off $30,000 loan?

I don’t think a parent can take a tax deduction for loans paid off for someone else. At least I wasn’t able to do so when I paid off my daughter’s loans six years ago. And she couldn’t take the deduction because she hadn’t paid off the loans. So nobody got a deduction for this.