how to calculate diamond cent