diff --git a/index.html b/index.html index 48cc62a..83ff437 100644 --- a/index.html +++ b/index.html @@ -23,6 +23,9 @@
  • Remaining meeting time: {{ timeText(totalRemainingTime) }}
  • +
  • + End estimated at: {{ timeText(estimatedEnd) }} +
  • Total meeting time: {{ timeText(totalTime) }}
  •   item.time) .reduce((a, b) => a + b, 0); }, + estimatedEnd() { + const delta = this.timerStarted + ? ((this.timerEnd - new Date()) / (1000 * 60)) + : this.showSelected + ? this.selectedData.time + : 0; + const toAdd = (this.totalRemainingTime - (this.showSelected ? this.selectedData.time : 0) + delta); + const end = new Date(); + end.setMinutes(end.getMinutes() + toAdd); + return end.getHours() * 60 + end.getMinutes(); + }, svgData() { let totalAngle = 0; return this.filteredData.map((item, index) => {