If the land was given under a registered joint development agreement, Sec 45(5A) taxes the gain in the year the completion certificate is issued, taking the stamp duty value of your share of flats as consideration, and the six-month window for Sec 54EC bonds (maximum Rs 50 lakh) runs from that date.