fm_area function

Calculate the area inside segments