code: def calculate_report_size(self, current_type, report_header):
          
  
          fmt = self.known_formats[current_type]
          return fmt.ReportLength(report_header)
docs: Determine the size of a report given its type and header