calc loss rate