Correct kalends calculation