Computing the JD or UT