Edited formula for adding extra space for brace