finding diamond riches formula kcpp