« first day (603 days earlier)      last day (3039 days later) » 

9:23 AM
@MithleshUpadhyay As you read in the comments, the formulation of your problem is rather unclear. Are you sure you copied it correctly? What is the source of the problem? (I think it might be a good idea to add a link or a reference to the question.)
 
9:39 AM
The fact that you were told in several comments, that the formulation of your problem is rather problematic and you did not react in your post to this in any way might be explanation for the two downvotes (at the moment).
 

« first day (603 days earlier)      last day (3039 days later) »