noise calculation