Percentage loss calculator