match form to calendar