adding number of day in year method