teeth grinding repair cost formula