It's not simple. Two pools in the same city may be 4-5 degrees different in temperature.
Essentially, I think you have to integrate outside temperature over time, add a correction for average below ground temperature, and add another correction for number of hours of direct sunlight and sun angle.
Chat with our AI personalities