This site provides good instructions on designing switch mode power supplies and allows you to simply enter
the input output requirements, and it will give you the component values.
http://www.daycounter.com/Calculators/Switching-Converter-Calculator.phtml