please check this page:

 

http://www.reuk.co.uk/LM317-Voltage-Calculator.htm