Question: how to calculate date difference in nintex workflow?
Answer: Create Form Variable. Click on Form Variable button. Click on formula, it should give you Formula Builder. ... 
Add Calculated Value control on the form and add newly created variable into formula.
Publish form and it should work.