Format the math