Corrected analytical formula, seems ok with simulations so far