On quantity calculus and units of measurement