calculate total degrees of freedom for repeatability test