fixed formula for finding p value