def calculate(input_):
    """
    Given a string with numbers separated by comma like "+1, -2"
    calculate the sum of the numbers
    """
    return sum([int(x.strip()) for x in input_.split(",") if x])