Not simple.
Seems that cost base is market value when you first rented (6 months after purchase).
If 'met someone else' means in a domestic relationship (spouse/de facto) and they also have a house that could be treated as a main residence then one or both of you will be foregoing some...