Calculations of Calendar and Julian Date