The Mechanism of Plana's Calendar