 
   if (tempTrend[0][sensor] < 0 )
   { //recovery time calculation
-    delta_temp = tempAvgCur[0][sensor] - TargetTemp[sensor];
+    delta_temp = cur_temp - TargetTemp[sensor];
     //Serial.print("[mF] Trend < 0. delta_temp:"); Serial.println(delta_temp);
 
   }
 
   if (tempTrend[0][sensor] > 0 )
-  { //Destroy time calculation
-    delta_temp = DestroyAlarmTemp[sensor] - tempAvgCur[0][sensor];
+  { 
+     delta_temp = DestroyAlarmTemp[sensor] - cur_temp;
     // Serial.print("[mF] Trend > 0. delta_temp:"); Serial.println(delta_temp);
   }
 
   forecastSeconds = delta_temp / (tempTrend[0][sensor] / monPeriodLen[0]);
+  forecastMinutes = forecastSeconds / 60;
   //Serial.print(delta_temp); Serial.print("/"); Serial.print(tt1mTrend[deviceid]); Serial.print("="); Serial.println(forecastSeconds);
   if (debug)
   {
-    Serial.print("[DBG] "); Serial.print(int(round(forecastSeconds))); Serial.print("(sec) till ");
+    Serial.print("[DBG] "); Serial.print(timeToHuman(forecastSeconds)); Serial.print(" till ");
+    if (tempTrend[0][sensor] < 0 )
+    {
+      Serial.println(TargetTemp[sensor]);
+    }
+    else {
     if (tempTrend[0][sensor] > 0 )
-    {
-      Serial.println(TargetTemp[sensor]);
-    }
-    else {
-    if (tempTrend[0][sensor] < 0 )
     {
       Serial.println(DestroyAlarmTemp[sensor]);
     }

int makeForecast(int sensor, bool debug)
{
  float forecastSeconds ;
  float delta_temp;
  float cur_temp = sensors.getTempC(thermalSensor[sensor]);


  {
    startOfPeriod[i] = now ();
    measuresPerPeriod[i] = monPeriodLen[i] / (cycleDelay / 1000);
    tempAvgPrev[0][i] = sensors.getTempC(thermalSensor[i]);
  }


