How can I determine the formula of a hydrate?