def calculate_report_size(self, current_type, report_header):
        """Determine the size of a report given its type and header"""

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