The period 18171832 was a particularly distressing time for Gauss

Could you correct the punctuation please?
The period 1817-1832 was a particularly distressing time for Gauss.