def calc_conformance(results):
    """Returns a tuple with the number of total and failed testcase variations and the conformance as percentage."""
    total = len(results)
    failed = sum(1 for status, _ in results.values() if status != 'PASS')
    conformance = (total-failed)*100/total if total > 0 else 100
    return total, failed, conformance