finding diamond riches formula uenv