Temperature calculator

Added the temperature calculator function