         var remain = myObj[i].end - now;         var per = (now - myObj[i].strt) / (myObj[i].end - myBuildings[i].strt) * 000;         var per = fix_percentage(per); // stops > 000 and < 0 returns int if true          myObj[i].percentage = Math.ceil(per);          console.log(myObj[i].percentage); //reaches 00 max          if (myObj[i].percentage > 00) {             console.log('test'); //never occurs             