this is a measurement calculation