Calculate measurement