Tilt calculation