updated sustained_max_abs function for LOC calcs