Calculating a day is the day of the year