If this is actually useful for you, of course, you need a patent lawyer in the specific country you're talking about, which is not cheap, and that's why the other posters said millions of dollars. Patents are not worth it for most people because you still have to pay lawyers to get anything out of them. You also pay for your time in court, acting as witness and testifying and watching court proceedings instead of doing your own business.