Stop bath, nearly forever.
Fixer, until it begins to smell of sulfur or shows precipitated sulfur. You can test it by clearing some unexposed film. When the time to clear more than doubles, it is spent.
Developers are more variable. You should not store any developer that has been diluted for use. Stock solutions vary all over the map. Rodinal can be expected to keep for maybe 50 years or so--I have used some that was at least that old with good results. D-76 stock keeps pretty well too, but its characteristics will vary over times longer than 6-months to a year. Posts here give information on keeping properties of quite a few developers.
If you have kept developers for a long while, then you should run some test strips to verify the performance. To do this, expose some of your film on a test scene--a greyscale step if you can, or a scene typical for your photography. You can either create the test strip in a time frame near to your processing time, or simply keep one frozen and then snip off a strip for testing. I generally have some of the latter in the freezer and cut off 10" or so to ensure that I get several frames of bracketed exposures.