import math lib for interval trigger