Measurement quantities algebra