Regarding the change of output format make the following changes:
Set the Data pattern of your 2 date fields to

and the Display pattern to the one you wish to have
Change the calculation script (if you use mine in FormCalc) to

What this does is to use the data format of your fields to get the date values for calculation which stays fixed whereas your display format can then change because we do not use the formattedValue properties any more.
