Refactors the Zeller's formula.