Generally a car is written off if the repair bills come to 50% of the value of the vehicle. Sometimes less and sometimes more and this can also differ depending on the area damaged (ie if the roof is damaged the car is usually deemed unsafe to repair).