Here is the essential information. What comes to the amount of priming sugar, temperature where the bottles are kept does not matter at all (but it matters for carbonation, you want to keep the bottles at room temperature (at the suggested fermentation temp of the yeast strain in question) for a couple of weeks so that yeast remains active and carbonates the beer).
There is actually one more thing that can complicate the process of choosing the best temperature for calculations. If the temperature of the beer (primary fermenter) at the end of fermentation is, say 70F, there is often quite a bit of carbon dioxide in the large headspace of the primary fermentation vessel. If you then cool it down heavily, say you are cold crashing (in the very same primary vessel) to 33F, some of the head space CO2 will redissolve in the beer and for optimal carbonation results (to avoid some excessive carbonation), you should use somewhat lower temperature than the 70F (given that you don't let it warm up again before bottling). In such case, you should probably use something in between 70 and 33. But in general, the highest beer temperature post fermentation (before bottling) is your choice.