You need to double the value of because the function only returns two-sided values, that is, . If you want , you have to supply as the parameter.
For example, if and the sample size (degrees of freedom) is , the formula is
When this command executes, the result is , which is the value of when we have and degrees of freedom.
The graph below represents this result. The shaded area goes from to , and has total area equal to , or .
This threshold value would be used to construct a Right-tailed test or confidence region.
(Note: this is the correct syntax for Excel. It is slightly different for other spreadsheets. Consult the help menu of the spreadsheet you are using to find the correct syntax for your spreadsheet program).