private static int AmountPerDayInMonth(Budget budgetByMonth, DateTime tempDate) { return(budgetByMonth.Amount / DateTime.DaysInMonth(tempDate.Year, tempDate.Month)); }
private static int DailyAmountOfBudget(DateTime start, Budget budget) { return(budget.Amount / DateTime.DaysInMonth(start.Year, start.Month)); }