What is the time limit for investing the capital gains on sold residential property in a new property?

What is the time limit for investing the capital gains on sold residential property in a new property?

For claiming exemption u/s54, the capital gains arising from sale of old property must be invested in:

  1. Purchase of another residential property within one year before or two years after the transfer of the old property.
  2. Construction on a residential house property within three years from the date of transfer/sale of the old property.
  3. On the condition that the new property purchased/constructed cannot be transferred/sold within three years from the date of purchase.