Part A of our Ops manual has some guidance in the form of a table as to how much to avoid thunderstorms and weather radar returns by. Basically it recommends (below 20000ft) 5 miles laterally (or 10 if it looks really nasty!) and overfly by 5000ft.
That's a bit of a simplification of what it says mind...