Apply arithmetic to measurement problems (#839)