What is the rule for input 0 output -1

lots of rules will produce that, but the easiest is

f(x) = x-1