It looks like the fomula's I have found online for fiquaring out what size cap to use are pretty involved. One thing - they ask the acceptable ripple after the cap? How do you know this? It is going into the lm317, so I assume this is the ripple IT can accept?