diff --git a/pages/inout.vue b/pages/inout.vue
index 30f284838259f76bdfad9802e75e46d78a62d80c..8cc1fb10a5d10a3a5286172dbeafac839ef3b7a4 100644
--- a/pages/inout.vue
+++ b/pages/inout.vue
@@ -18,6 +18,8 @@
 <script>
 import gql from 'graphql-tag'
 
+const today = Math.round(Date.now() /1000)
+
 export default {
   data() {
     // Variables locales
@@ -32,8 +34,7 @@ export default {
           text: 'Entrées et sorties',
           active: true
         }
-      ],
-      today : Math.round(Date.now() /1000)
+      ]
     }
   },
   // Fonctions locales
@@ -59,7 +60,7 @@ export default {
           }
         }
       } `,
-      variables(){return {start:this.today-86400*2,end:this.today}},
+      variables(){return {start:today-86400*2,end:today}},
       update (data) {
         let result = {'entrees':[],'sorties':[]}