There is no set rule, but airports with sophisticated pricing systems will give bigger discounts when you reserve further in advance.