In tonight's build of 2.8, the new TRENDVALUE function has been added.
This allows you to work out the Y value for a line of best fit (linear trend) given any two numeric/date fields. This is equivalent to what you see in the Graph view when you show a line of best fit.