diff --git a/library/src/calculate_price.cpp b/library/src/calculate_price.cpp index 69730ca..a2fdb15 100644 --- a/library/src/calculate_price.cpp +++ b/library/src/calculate_price.cpp @@ -192,8 +192,8 @@ CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket( QString cs = start_parking_time.toString(Qt::ISODate); double cost = calculator.GetCostFromDuration( tariff, PaymentOption::Option1, - cs.toLocal8Bit().constData(), - duration, false, true); + cs.toLocal8Bit().constData(), // starting time + duration, false, true); // duration, minutes, netto double minCost = tariff->PaymentOption.find(PaymentOption::Option1)->second.pop_min_price; if (cost < minCost) { calcState.setDesc(QString("minCost=%1, cost=%2").arg(minCost, cost));