Added dateDiffCalculation function

Addition of function 3.