My mom is the volunteer organizer for her company, they do a lot of work for Care and Share food bank here in Springs.
The general rule they use is 5yrs after the exp date for any non acidic cans, 1yr after the date for acidic cans.
Anything leaking/rusty or bulged in any way gos in the trash.