Losses calculation added