At what point considering cost to repair vs market value is a car considered a total loss?

Typically when the cost of repair reaches 80% and for sure at 90% on the initial appraisal.