Predicting the temperature of an object using the heat of its surroundings after a certain amount of time?
You're basically looking at radiation, conduction, and convention as methods to dissipate heat.

Heat loss by radiation can be computed from Wein's law or something similar.

Conduction requires knowing the thermal properties and dimensions of the materials in contact.

Convection is the trickiest one since it requires some model for how the air or other fluid around the object is moving and coupling this to conduction.

All three are subject to significant errors in computation if you're not careful though if you're trying to estimate rough order of magnitude, you might not care.

All in all, this is not an easy problem to compute from first principles.

Note also that your example is not nearly well-defined enough to solve this problem. What is the surface area of the bottle and the size of the refrigerator. How well does the refrigerator maintain its internal temperature? Is there a fan? Is the water inside a thermos bottle?