How to culcalate heat exchange?
This depends on a lot of different factors such as the materials involved, geometry, type of heat transfer that is happening (conduction, convection, or radiation), among other things. Try doing some research on the internet relating to heat transfer. I took a semester long course as part of my mechanical engineering degree that covered a lot of material, and depending on your specific application there will be a specific way to deal with it. There is no one equation fits all approach here.
Simply for liquids Q(heat)=m(mass). c(coeff). Delta t(change in temperature) For gases Q=m(mass). Le,b(melting or evaporation coefficient)
This question is to broad for a simple answer. I assume by heat exchange you are refereeing to Heat Transfer. If this is the case, every situation is different. Heat Transfer is dependent on the environment. It's simplest form (one of the 2 major laws in thermal dynamics) is Qin = Qout meaning energy going into the system must equal energy leaving the system. With that being said there are 3 basic types of Heat Transfer. Conduction (heat transfer through a solid or liquid), Convection (heat transfer through air), and Radiation (heat transfer through radiation). you can find more on these subjects in the links below... On the other hand if you are refereeing to Heat Exchangers the equation is: (mass flow of fluid A)*(enthalpy of fluid A, in)+(mass flow of fluid B)*(enthalpy of fluid B, in) = (mass flow of fluid A)*(enthalpy of fluid B, out)+(mass flow of fluid B)*(enthalpy of fluid B, out)