Have a look at this site if you want to do the calculations by hand

Regression: Fitting Functions to Data

Otherwise MS Excel will find an equation for you once you have graphed your values.

Constructing a Least-Squares Graph Using Microsoft Excel