Are you referring to canned green beans?
I would go with about a year, 2yrs pushing it. I supposed they might still be "good" in not making you sick for longer, but would not taste very good. I would check the can for any bulging, open carefully to see if any funn stuff on top of beans, and give it the smell test.