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