Simple DOF calculator.