Expanding on that example ig the qs report when you purchased showed carpet worth 10k then the allocation will be
land and buildings $275k
plant and equipment $10k
On sale assuming you sold for 285k
land and buildings $284k
plant and equipment $1k
Capital gain is $284k less $275k.
This...