I just took my old one to the local auto parts store and got one about the same length.
If you don't have your original, take some string, run the string as if it were the cable, measure the string…….. Then go to the local auto parts store.
You are really over thinking something that is very simple.