cast string to int for timer