Calendar structure handles integers only

Error handling must be moved to generics.