White rice will last for 5 years.
Six months is for brown rice.
While whole wheat or brown rice or other minimally processed ingredients may be slightly more nutritious they have a shorter shelf life and your body will gain less energy from them.
*******************************************************************************
Properly packaged white rice and wheat grains will last 20 - 30 years or more. Just be sure to have a grinder/mill to process the wheat for bread, or you’ll have to settle for wheat porridge or something.
I never assume people are going to carefully pack things away.
I give advise for the people who just buy a twenty pound bag of rice and a twelve pound bag of bean and stick them in a closet.
Heck, if they do that they are ahead of the majority so bravo.
If they get a water drum and keep it filled, a propane burner and some propane they are doing really well.
If I can get them to that point I have started them on the road to having something and I have changed their mindset from "today" to "future".