I don't understand this, myself. Why isn't this calculation implemented as a mechanical state machine? It's impossible to implement a 5,700,000-year cycle with an individual program wheel, but three or four smaller, simpler ones should be able to do the job.
Hard to see why this is considered a difficult problem at this point, 2000+ years after the Antikythera Mechanism.