Rice should be eaten within two hours of cooking. Bacteria grow at 4-60°C (39.2-140°F)