http://www.csgnetwork.com/circumellipse.html Also, http://en.wikipedia.org/wiki/Ellipse#Circumference
The problem is that in general you cannot calculate the exact value (unless you got good numbers.. perhaps if it is a circle). There are plenty of approximation formulas out there, but the exact equation is an infinite series.