Refactoring for calculate the day ago