I'm trying to give an amount returned based on household income and the number of children

When I run it, it says: 

> 
> Traceback (most recent call last): line 24, in main() line 5, in main print("Amount returned: ", amount(returned)) NameError: global name 'returned' is not defined >>> – 
> 
> 
> 

```
def main():
    income = int(input("Please enter the annual household income: "))
    children = int(input("Please enter the number of children for each applicant: "))

    print("Amount returned: ", amount(returned))

def amount (returned):
    if income >= 30000 and income < 40000 and children >= 3:
        amnt = (1000 * children)
        return amnt

    elif income >= 20000 and income < 30000 and children  >= 2:
        a = (1500 * children)
        return a

    elif income < 20000 :
        r = (2000 * children)
        return r

    else:
        return "error"

main()

```