How is the loss calculated?