The president of the United States does not have to be good in math. This is because they have an army of the best mathematicians and the most advanced technology at their hands. One might need to be good at basic math and calculations, but not proficient in subjects such as calculus or trigonometry.
I hope this helps! :)