Calculating the Temperature at Which a Reaction Becomes Spontaneous