finding diamond riches formula egex