Measurement calculation