math formula for better writing