How long will inflation last? The answer lies in the past