Timing and duration of inflation targeting regimes