calculate_characteristic_limits function

Characteristic limits function-----------------------------------------------