Where the profit arising from the sale of any property is included in the assessable income of any person, or where the loss arising from the sale is an allowable deduction, and any expenditure incurred by the person in connexion with that property has been allowed or is allowable as a deduction under this Act, that expenditure shall not be deducted in ascertaining the amount of the profit or loss.