finding diamond riches formula objc