Oatmeal baked like this will be good in the refrigerator for up to 4-6 days. It should be sealed in an airtight container within a 2-4 hours of cooling to room temperature to ensure it doesn't prematurely spoil.