error check valid range of days in both Hebrew and Gregorian months