Metric for supernova surveys