can someone tell me how to calculate class width.

suppose the number of classes and class widh being 5 and 12 respectively.form a grouped frequency distribution..

the maximum is 98 while the minimum is 12.
Should i calculate it: maximum - minimum that is 98-12=76

to know how many classes i want, for ex: 5, should i divide 76 by 5?