determine amount of loss