I have some problem with jquery datepicker and compute function.
When I fill every field the function calculating the right value in “total day” field, but when I change date to another the “total day” value didn’t calculate.
Working example:
http://jsfiddle.net/amarcinkowski/3Upet/
Add compute function inside onSelect:
Example: Fiddle