module.exports = function() {
    var now = new Date();
    // console.log(now.toISOString());
    var offset = now.getTimezoneOffset();
    var next = new Date(now).setSeconds(0);
    next = new Date(next).setDate(now.getDate() + 7 - now.getDay() + 3);
    next = new Date(next).setMinutes(0);
    next = new Date(next).setHours(19 - 180 / 60);
    // console.log(new Date(next).toISOString());
    
    var diff = next - Date.now() - offset * 60 * 1000;
    
    var days = (1000 * 60 * 60 * 24);
    var hours = (60 * 60 * 1000);
    var minutes = (60 * 1000);
    var seconds = 1000;
    
    var daysLeft = Math.floor(diff / days);
    var hoursLeft = Math.floor(((diff - daysLeft * days) % days) / hours);
    var minutesLeft = Math.floor(((diff - daysLeft * days - hoursLeft * hours) % hours) / minutes);
    var secondsLeft = Math.floor(((diff - daysLeft * days - hoursLeft * hours - minutesLeft * minutes) % minutes) / seconds);
    
    var tMinus = [daysLeft, hoursLeft, minutesLeft, secondsLeft];
    
    tMinus.forEach(function(el) {
      return (el < 10) ? "0" + el : el;
    });
    
    var tMinusDescriptors = ["дней", "часов", "минут", "секунд"];
    
    tMinusDescriptors[0] = (tMinus[0] >= 1 && tMinus[0] <= 4) ? "дня" : "дней";
    tMinusDescriptors[1] = (tMinus[1] % 10 === 1) ? "час" : "часов";
    tMinusDescriptors[1] = (tMinus[1] % 10 > 1 && tMinus[1] % 10 <= 4 && tMinus[1] % 10 != 1) ? "часа" : "часов";
    tMinusDescriptors[2] = (tMinus[2] % 10 === 1) ? "минута" : "минут";
    tMinusDescriptors[2] = (tMinus[2] % 10 > 1 && tMinus[2] % 10 <= 4 && tMinus[2] % 10 != 1) ? "минуты" : "минут";
    tMinusDescriptors[3] = (tMinus[3] % 10 === 1) ? "секунда" : "секунд";
    tMinusDescriptors[3] = (tMinus[3] % 10 > 1 && tMinus[3] % 10 <= 4 && tMinus[3] % 10 != 1) ? "секунды" : "секунд";
    
    
    // console.log("T minus " + tMinus[0] + ":" + tMinus[1] + ":" + tMinus[2] + ":" + tMinus[3] + " and counting");
    return ("До бани осталось " +
                tMinus[0] + " " + tMinusDescriptors[0] + " " +
                tMinus[1] + " " + tMinusDescriptors[1] + " " +
                tMinus[2] + " " + tMinusDescriptors[2] + " " +
                tMinus[3] + " " + tMinusDescriptors[3] + ".");
}
@@ -1207,48 +1207,152 @@
 %5B0%5D 
-%3E= 1 && tMinus%5B0%5D %3C= 4) ? %22%D0%B4%D0%BD%D1%8F%22 : %22%D0%B4%D0%BD%D0%B5%D0%B9%22
+%25 10 == 1) ? %22%D0%B4%D0%B5%D0%BD%D1%8C%22 : %22%D0%B4%D0%BD%D0%B5%D0%B9%22;%0A    tMinusDescriptors%5B0%5D = (tMinus%5B0%5D %3E 1 && tMinus%5B0%5D %3C= 4 && tMinus%5B0%5D %25 10 != 1) ? %22%D0%B4%D0%BD%D1%8F%22 : tMinusDescriptors%5B0%5D
 ;%0A  
@@ -1390,25 +1390,24 @@
 s%5B1%5D %25 10 ==
-=
  1) ? %22%D1%87%D0%B0%D1%81%22 
@@ -1518,31 +1518,44 @@
  ? %22%D1%87%D0%B0%D1%81%D0%B0%22 : 
-%22%D1%87%D0%B0%D1%81%D0%BE%D0%B2%22
+tMinusDescriptors%5B1%5D
 ;%0A    tMinus
@@ -1585,25 +1585,24 @@
 s%5B2%5D %25 10 ==
-=
  1) ? %22%D0%BC%D0%B8%D0%BD%D1%83%D1%82
@@ -1718,31 +1718,44 @@
  %22%D0%BC%D0%B8%D0%BD%D1%83%D1%82%D1%8B%22 : 
-%22%D0%BC%D0%B8%D0%BD%D1%83%D1%82%22
+tMinusDescriptors%5B2%5D
 ;%0A    tMinus
@@ -1789,17 +1789,16 @@
  %25 10 ==
-=
  1) ? %22%D1%81
@@ -1921,32 +1921,44 @@
 %22%D1%81%D0%B5%D0%BA%D1%83%D0%BD%D0%B4%D1%8B%22 : 
-%22%D1%81%D0%B5%D0%BA%D1%83%D0%BD%D0%B4%22
+tMinusDescriptors%5B3%5D
 ;%0A    %0A    %0A

fix time descriptors