How is tax loss determined?