diff --git a/library/src/calculator_functions.cpp b/library/src/calculator_functions.cpp index afe43fa..12fa03a 100644 --- a/library/src/calculator_functions.cpp +++ b/library/src/calculator_functions.cpp @@ -159,7 +159,8 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg, return CalcState::BELOW_MIN_PARKING_PRICE.toStdString(); } - if (prepaid == false) { + int const pop_time_step_config = cfg->getPaymentOptions(paymentOptionIndex).pop_time_step_config; + if (pop_time_step_config == (int)ATBTimeStepConfig::TimeStepConfig::RECOMPUTE_SOME || prepaid == false) { int const pop_id = cfg->getPaymentOptions(paymentOptionIndex).pop_id; int const pop_accumulate_prices = cfg->getPaymentOptions(paymentOptionIndex).pop_accumulate_prices; int const pop_accumulate_durations = cfg->getPaymentOptions(paymentOptionIndex).pop_accumulate_durations;