OK, the rules of the game are this:
If you build an extension to your dwelling that needed planning permission but you get it built and it remains for at least 4 years, Development Control (the Planning Permission people at the council) cannot then force you to demolish it. However you may still have a problem when it comes to selling the dwelling. After 4 years are up, you can apply for a Certificate of Lawfulness. This requires the same drawings as you would have needed for PP in the first place and you pay the same fee, but Development Control cannot refuse the certificate. That legalises the extension.
Note that the above only applies to a MODIFICATION to an existing use - if, say, you had an agricultural barn and you converted it to live in you would have to wait 10 YEARS (not 4) before you could consider yourself in the clear. This is because a Change of Use has occurred - from agricultural to dwelling-house.