Calculate eccentric anomaly