Hi Carolaj,
It is based on the value.
You will need to have a value of the flat at time of purchase in order to work out the gain on the dance studio in order to report it.
For declaring any gain, it will still be the full gain and then you apply for deferred consideration as not all the funds are received at point of sale -
CG14850 - Deferred consideration: introduction
Thank you.