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