If you're getting caffeine headaches and are trying to get away from caffeine the caffeine headache should go away fully within 9 days after you stop caffeine intake.
Sometimes the caffeine headaches can also last up to 21 days but most caffeine headaches go away in 9 days.