Fixed plus/minus operations

There was a problem in calculating boundaries.