My dd's school manages it by requiring each class to have math at the same time each day. Math is always immediately after lunch.