Add type declarations to records; reduce repeated use of now() and calendar module