How to Calculate the Day of the Year
Day of the Year = Selected Date - Year's First Day + 1
Other Calculations:
- Week of the Year = Year's Day ÷ 7 (rounded up)
- Remaining Days = Year's Last Day - Selected Date
- Leap Year Check = 366 days if the year is divisible by 4, otherwise 365 days