$i = ($page_num*10)-1;
foreach(){
$i++;
echo $i;
}
$scope.calcTime = function(date){
var dateFormat = 'DD/MM/YYYY HH:mm:ss';
var end = moment(date);
var now = moment();
var difference = moment(endDate,dateFormat).diff(moment(currentDate,dateFormat));
var duration = moment.duration(timeDIff);
var formatDuration = timeDuration.format("d дня hh часов mm минут ss секунд");
console.log(formatDuration);
return formatDuration;
}
<div>
<div ng-repeat="item in Info">
<h3>{{item.name}}</h3>
<p>До окончания:<br />{{calcTime(item.date)}}</p>
</div>
</div>