Also add dtemp to the time equation.