Jquery-Calx will not persist on IF function

Jquery-Calx will not persist on IF function

I don't know if this is the right place to ask this question. I am using the plugin Jquery-Calx. One of the formula i am using is IF function: 
  1. data formula="IF(AND(H13='dance',H14='dance'),1,IF(AND(H13='dance',H14='cook'),2,IF(AND(H13='cook',H14='dance'),3,IF(AND(H13='cook',H14='cook'),4,0))))"
the calculated result does write into the database, but won't persist on form view. But other type of calculation doesn't have this problem, why is that? does that mean i have to write jquery code to persist this type of calculation formula?