def build_quota_table(old_quotas, updated_quotas):
    """Construct the table of updated quotas for insertion into the email"""
      
    QUOTA_FORMAT = "{quota:>25} |{old_value:>10} |{new_value:>10}"
    
    headers = QUOTA_FORMAT.format(quota='QUOTA  ', old_value='OLD VALUE',
                                  new_value='NEW VALUE')
    dividers = QUOTA_FORMAT.format(quota='-' * 20, old_value='-' * 10,
                                   new_value='-' * 10)
    
    quota_rows = [headers, dividers]
    for q in updated_quotas:
        quota_rows.append(QUOTA_FORMAT.format(quota=q,
                                              old_value=old_quotas[q],
                                              new_value=updated_quotas[q]))
    
    quota_table = "\n".join(quota_rows)
    return quota_table