Fix is_overtime/is_undertime calculation.