Modify this Python code to add an exception for invalid input.
def calculate(a, b):
    if b > 0:
        c = a / b
        return c
def calculate(a, b):
    if b == 0:
        raise ZeroDivisionError
    elif b > 0:
        c = a / b
        return c
    else:
        raise ValueError