diff --git a/ReportImp/SBBMainzReports/Calculations/SBBMainzCalculations.cs b/ReportImp/SBBMainzReports/Calculations/SBBMainzCalculations.cs index d3c89dedf..e28772329 100644 --- a/ReportImp/SBBMainzReports/Calculations/SBBMainzCalculations.cs +++ b/ReportImp/SBBMainzReports/Calculations/SBBMainzCalculations.cs @@ -418,7 +418,10 @@ namespace BeWo.SBBMainzReports.Calculations break; } - approvedBEPerDay = (anzahlWochenGesamt * bewilligtProWoche)/anzahlTageGesamt; + if (anzahlTageGesamt != 0) + { + approvedBEPerDay = (anzahlWochenGesamt * bewilligtProWoche) / anzahlTageGesamt; + } } var serviceUnit = costRatePeriods.GetCostRatePeriodForDate(CostRatePeriodType.MinutesPerServiceUnit, end);