How do you calculate the pH of a weak acid?

A Level