private TimeSpan GetTimePerDay(ReportItem report) { int daysLeftInMonth = DateTime.DaysInMonth(report.Year, report.Month) - DateTime.Now.Day + 1; if (Settings.GetDaysOfWeek().Count() > 0) { daysLeftInMonth = ReportUtils.GetEffectiveDaysInMonth(Settings.GetDaysOfWeek()); } if (daysLeftInMonth <= 0) { daysLeftInMonth = 1; } TimeSpan timeLeftToEnd = GetTimeLeftToEnd(report); if (timeLeftToEnd.TotalMinutes > 0) { double minutesPerDay = timeLeftToEnd.TotalMinutes / daysLeftInMonth; return(new TimeSpan(0, Convert.ToInt16(minutesPerDay), 0)); } else { return(new TimeSpan(0, 0, 0)); } }