Input (grade 7): He had resigned from the shoe factory ten days previously.
Output (grade 5): He had resigned from the shoe factory ten days before.