What are the formula for applying Einstein's relativity in mathematics? Suppose, for example, that I wanted to resolve the twin paradox. Couldn't I do it by applying one of the formula of relativity theory and calculate how much time goes by for each twin, and therefore which one ages more? What would these formula be?