calculate system losses