We generalize a combinatorial formula of Douady from the main cardioid to other hyperbolic components H of the Mandelbrot set, constructing an explicit piecewise linear map which sends the set of angles of external rays landing on H to the set of angles of external rays landing on the real axis.