Update position calculation