diff --git a/js/app/views/PlotComponents/PlotZoomPlug.js b/js/app/views/PlotComponents/PlotZoomPlug.js
index 97c7dbb..2c2bb6d 100644
--- a/js/app/views/PlotComponents/PlotZoomPlug.js
+++ b/js/app/views/PlotComponents/PlotZoomPlug.js
@@ -187,7 +187,7 @@ Ext.define('amdaPlotComp.PlotZoomPlug', {
     switch (zoomType) {
       case 'timeAxis':
         if (this.isPlotFunction) {
-          const title = "Appliquer une Transformation";
+          const title = "Apply a Function on Interval";
           this.win.setTitle(title + '-Panel Id: ' + panelId);
         } else {
           this.win.setTitle('Zoom on time axis & Interval selection - Panel Id : ' + panelId);
diff --git a/js/app/views/PlotComponents/plotFunction/ParamField.js b/js/app/views/PlotComponents/plotFunction/ParamField.js
index 2a6ffa3..4839b10 100644
--- a/js/app/views/PlotComponents/plotFunction/ParamField.js
+++ b/js/app/views/PlotComponents/plotFunction/ParamField.js
@@ -116,9 +116,9 @@ Ext.define('amdaPlotComp.plotFunction.ParamField', {
     setValues: function (startTime, stopTime) {
         for (p in this.params) {
             let param = this.params[p];
-            const nb_points = (stopTime - startTime) / param.MinSampling;
+            const nb_points = (stopTime.getTime() - startTime.getTime()) / (1000. * param.MinSampling);
             const ui_item = this.parent.findField(this.label_number_field1 + param.id);
             ui_item.setValue(parseInt(nb_points));
         }
     }
-});
\ No newline at end of file
+});
--
libgit2 0.21.2