well, consider this
in most of the USA, if you enter a cave or go underground, the place is cool or in the winter, warm. Here the temp is a constant 55 F. it turns out that year in year out, 55 F is that average temp.
We do not have calculations about the heat attributable to the sun and to the earth core.
Oh, I know. I worked in mines and was a spelunker in my 20s.