« first day (1810 days earlier)      last day (1249 days later) » 

6:33 PM
@lanz : while your error has been corrected in the code others have provided, I don't see that they explained that $(i) is command-substitution, where as you really needed ${i} or even just "$i". Look up Qs here about command substition for an explantion on that. Good luck.
 

« first day (1810 days earlier)      last day (1249 days later) »