def unix_time_to_mjd(time_in_unix):
    """
    Converts the time format from unix to MJD (Modified Julian Date)
    86400 is the # of sec per 24 hours
    40587 is the unix epoch in mjd
    """
    time_in_mjd = time_in_unix / 86400 + 40587
    return time_in_mjd