diff --git a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
index cb8e5eebc1..76df25a033 100644
--- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
@@ -138,7 +138,7 @@
- {$account.1.register_expires}
+ {math equation="x / y" x=$account.1.register_expires y=40}
@@ -1073,7 +1073,8 @@
- {$account.2.register_expires}
+ {math equation="x / y" x=$account.2.register_expires y=40}
+
@@ -2006,7 +2007,7 @@
- 60
+ {math equation="x / y" x=$account.3.register_expires y=40}
@@ -2939,7 +2940,7 @@
- {$account.4.register_expires}
+ {math equation="x / y" x=$account.4.register_expires y=40}
@@ -3875,7 +3876,7 @@
- {$account.5.register_expires}
+ {math equation="x / y" x=$account.5.register_expires y=40}
@@ -4809,7 +4810,7 @@
- {$account.6.register_expires}
+ {math equation="x / y" x=$account.6.register_expires y=40}