Generally, you can calculate it with this formula: df = (r-1)(c-1) where r is the number of rows and c is the number of columns.
6.5m questions
8.7m answers