helper functions for calculating difference in days between dates (including those from different years)
adding DoyDate class