Use x/y offset in calculation