add printtemplate with date calculation