diff --git a/library/src/calculate_price.cpp b/library/src/calculate_price.cpp index dbe0dd0..eec2293 100644 --- a/library/src/calculate_price.cpp +++ b/library/src/calculate_price.cpp @@ -818,7 +818,7 @@ CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket( // handle carry over int minutesUntilCarryOver = effectiveStartTime.time().secsTo(carryOverStart) / 60; - if (netto_parking_time > minutesUntilCarryOver) { + if (netto_parking_time >= minutesUntilCarryOver) { int const rest = netto_parking_time - minutesUntilCarryOver; QDateTime s(effectiveStartTime); s = s.addSecs(minutesUntilCarryOver * 60);