public double ActualParkingFee(DateTime checkIn, DateTime checkOut) { TimeSpan timeDiff = checkOut - checkIn; double fee = timeDiff.TotalMinutes; // 1 RS / min, so no need for extra calculations return fee; }
DoubleAmount = (timespan /10)*10;
Rate
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)