Based on this list:
Since it's brought up to a boil and then simmered and no new or fresh ingredients are added that could decay due to lack of cooking, if put in a sealed mason jar in the fridge after thorough cooking , I;d say it should last for at least 30 days if not longer. The vinegar, w-sauce and citrus juice should stabilize it enough to keep any bad stuff at bay.
The ketchup already has preservatives plus vinegar in it (if bottled) so that helps too.
If I had to place a bet on it, if kept in a cool fridge in a cool house, it would last 60 to 90 days or more. It'll mold on top before it turns as a batch usually.