using AsbCloudDb.Model; using System; using System.Collections.Generic; namespace AsbCloudInfrastructure.Services.WellOperationService { class Race { public DateTime StartDate { get; set; } public double StartWellDepth { get; set; } public DateTime EndDate { get; set; } public double EndWellDepth { get; set; } public double DrillingTime { get; set; } public double NonProductiveHours { get; set; } public double DeltaDepth => EndWellDepth - StartWellDepth; public double DeltaHoursTimeNoNpt => (EndDate - StartDate).TotalHours - NonProductiveHours; public double Speed => DeltaDepth / (DeltaHoursTimeNoNpt + double.Epsilon); public List Operations { get; internal set; } } }