threshState function

Computes value for a threshold character from a liability and thresholds