Adds gergorian calendar algorithm