clean the math in alarm activity