Hi antoeknee1,
As stated, the general answer to your question is that the gain is chargeable on the beneficial ownership of the property.
The link provided should give the guidance necessary to address the specifics of your question.
If you are still unsure after reading the provided guidance, contact us by webchat, phone or post via
Self Assessment: general enquiries, and we can provide the specific help you need.
Thank you.