def interval_to_errors(value, low_bound, hi_bound):
    """
    Convert error intervals to errors

    :param value: central value 
    :param low_bound: interval low bound
    :param hi_bound: interval high bound
    :return: (error minus, error plus)
    """

    error_plus = hi_bound - value
    error_minus = value - low_bound

    return error_minus, error_plus