• Resolved ful1to

    (@ful1to)


    Hi, im trying to create a fare estimated calculator. I want to show a total calculated from # of personas by cost of destination. You can see it here https://transprogresochoco.com.co/?page_id=463

    My formula is:

    IF(C<0){}
    ELSE IF (C>0) {R*C}
    IF(D<0){}
    ELSE IF (D>0) {R*D}
    IF(E<0){}
    ELSE IF (E>0) {R*E}
    IF(F<0){}
    ELSE IF (F>0) {R*F}
    IF(G<0){}
    ELSE IF (G>0) {R*G}
    IF(H<0){}
    ELSE IF (H>0) {R*H}
    IF(I<0){}
    ELSE IF (I>0) {R*I}
    IF(J<0){}
    ELSE IF (J>0) {R*J}
    IF(K<0){}
    ELSE IF (K>0) {R*K}
    IF(L<0){}
    ELSE IF (L>0) {R*L}
    IF(M<0){}
    ELSE IF (M>0) {R*M}
    IF(O<0){}
    ELSE IF (O>0) {R*O}
    IF(P<0){}
    ELSE IF (P>0) {R*P}
    IF(Q<0){}
    ELSE IF (Q>0) {R*Q}

    It doesnt work. Thank you.

    • This topic was modified 10 months, 2 weeks ago by ful1to.
Viewing 3 replies - 1 through 3 (of 3 total)
  • @ful1to

    Thanks for reaching out to us.

    We have reviewed the issue you have provided and observed that there is a need for enhancement to the code you have provided.
    As you have multiple completed “IF… ELSE” statements in your formula, we recommend you to put them into the separate formula elements, so that the formula gets the work done as expected.
    Current formula:
    [ IF(C<0){} ELSE IF (C>0) {R*C} ]

    Corrected formula:
    [ IF(C>0) {R*C} ELSE (0) ]

    Using this example of the corrected formula you can correct the other ones.
    If you have any other questions or any further assistance needed, feel free to ask.

    Warm regards,

    Thread Starter ful1to

    (@ful1to)

    That solved my problem. Thank you.

    The plugin has been a perfect solution for my need of making a fare estimate calculator between point A to point B. Simple, flexible and very usable.

    Thank you again.

    Hi @ful1to

    Thank you so much for your kind words! We’re really glad to hear the plugin has been a perfect solution for your fare estimate calculator—it’s always rewarding to know it’s making a real difference.

    If you have a moment, we’d greatly appreciate it if you could leave us a quick review and a 5-star rating on our review page. Your feedback helps others discover the plugin and supports ongoing improvements.

    Using this link you can go to the page, where you can leave your review:
    https://ww.wp.xz.cn/plugins/cost-calculator-builder/#reviews

    If you have any other questions or any further assistance needed, feel free to ask.

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Help in formula’ is closed to new replies.