AFAIK, you can modify a room anytime up to the day before checkin. You just have to understand that if the new room costs fewer points, the extra points will go into holding, and using them will be more complicated than if you modify at 31 days or more.