finised calendar logic