Two hours is the maximum you want to keep scalloped potatoes on the warm setting after cooking.