Add cal_date() function: Julian day -> Gregorian