A. Previously, you had to repay the loan within 60 days of leaving your job to avoid taxes on the money, plus a 10% penalty if you left before age 55.
The new and extended deadline to repay the loan and avoid taxes and penalties is the due date of your tax return for the year you leave your job.
If you file an extension for your tax return, you will have until Oct 15 of the year after you leave your job to repay the loan without penalties or taxes.