refactor getting difference of date of birth and rearrange package