Average weighted mean formula for thesis