How do you determine whether something is a function or not?

If it is a rule or formula that lets you input one number to get another, then it is a function.