The ideal time should be during the planning stage, i.e. before the actual construction of the building commences. Consider creating the doors and windows openings as per the desired layout of the bed, the wardrobe and the chairs, rather than trying to ill-fit the bed in an existing small bedroom with fixed movement areas. This additionally saves up on expenses involved in making structural changes at a later stage.