correct how to calculate settled