If you have a series of data with dates for the X axis and values for the Y axis, it will calculate a best fit line using the least square method with the option of extending the best fit line a number of days past your last date. The client and server actions are the same thing.
Added extrapolate using to/from dates to the client action version.