public Int32 CalculateStartToBedTimeHours() { Int32 Minutes = BedTime.Minutes + StartTime.Minutes; TimeSpan StartToBed = BedTime.Subtract(StartTime); return((Int32)Math.Ceiling(((StartToBed.TotalMinutes + Minutes) / 60))); }
public Int32 CalculateStartToBedTimePay(Int32 Hours) { TimeSpan StartToBed = BedTime.Subtract(StartTime); return(Hours * StartToBedTimeWage); }