This already exists in the USA. It's called Income Based Repayment and the outstanding balance of loans and interest is forgiven after 30 years of making payments capped to a certain percentage of income. There is a tax penalty that may or may not still exist in 30 years.