Halfway this page there is a short calculator procedure that takes as input the focal length of the lens used and the amount of extension added, and with pushing a few buttons produces the compensation required, in stops.
5 steps involved. Short and simple enough to even memorize.