def jd2jcal(jd):
    """Julian calendar date for the given Julian date.

    The input and output are for the proleptic Julian calendar,
    i.e., no consideration of historical usage of the calendar is
    made.

    Parameters
    ----------
    jd: int
        The Julian date.

    Returns
    -------
    y, m, d: int, int, int
        Three element tuple containing year, month, day.
    """
    j = jd + 1402
    k = ipart((j - 1) / 1461.0)
    l = j - (1461.0 * k)
    n = ipart((l - 1) / 365.0) - ipart(l / 1461.0)
    i = l - (365.0 * n) + 30.0
    j = ipart((80.0 * i) / 2447.0)
    day = i - ipart((2447.0 * j) / 80.0)
    i = ipart(j / 11.0)
    month = j + (12.0 * i) - 2
    year = (4 * k) + n + i - 4716.0
    return int(year), int(month), int(day)
dataset/ETHPy150Open mne-tools/mne-python/mne/externals/jdcal.py/jd2jcal/swapped operands of `-`