Question was answered by @Ezy - thanks!
This seems to be a basic question, but mysteriously unsolvable as far as I can see.
It concerns calculating the interest rate from a given stock futures price. It seems astonishingly hard to do.
Assume the following are given:
F - the Futures price
S - the Spot price
T - the Time to the futures expiry (days / 365)
D1 - the expected Dividend
t1 - the Time from the dividend ex-date to expiry
R - the risk Rate used
To keep it simple, assume there is only 1 expected dividend. Then the formula for the futures price is:
F = Se^(RT) - D1*e^(R*t1)
Then assume we have all the values except r. We know what F, S, T, t, and D are; and we want to solve for R.
I was unable to solve for R. (Perhaps my algebra is too weak). Wolfram Alpha professional also can't resolve a general 'R' from this equation either. If taken over the real numbers, then Wolfram Alpha can approximate R if all the other values are given. It looks like this is done through some kind of Goal-Seek or numerical analysis.
Why is this simple effort of getting R turning out to be so mysteriously difficult?
Note: The answer from @Ezy shows that the right answer is:
Use roots to get the value of R. One uses roots to get the implied rate. The formula, for one dividend, can be extended by adding cost of carry:
$$F = Se^{(R-q)T} - D1e^{(R-q)t1}$$
Where q is cost of carry.
One can add as many values of D as is necessary (D2, D3 etc.) to represent all the divs due in the period (each will then have a different t to expiry: t2, t3, etc).