Checks if time and distance intervals is an integer and > 0