How do I calculate exponent equations?