If it can be done via a permitted development build, the height is always measured from the highest ground level adjacent to the extension. So if you went for a simple flat roof extension and had to be under 2.5m, if the ground slopes down by 2m, you could actually be 4.5m at the lowest ground...