Keep in mind that if your mains are eg. 230 V rated (so 230 V is AC RMS value), peak AC value is square root two times RMS value. Of course for safety reasons we put higher voltage capacitors (12 VAC RMS -> 16 V cap, 24 VAC RMS -> 35 V cap - and that's including the minimum safety coefficient).