Added days in year function.