compute median family income as a ratio